TestimoX

API Reference

Struct

ForestTrust

Namespace ADPlayground.Trusts
Assembly ADPlayground
Base ValueType
Modifiers sealed

Represents a forest trust and its validation status.

Inheritance

  • ValueType
  • ForestTrust

Constructors

public ForestTrust(String sourceForest, String targetForest, TrustType trustType, TrustDirection direction, TrustValidationStatus validationStatus = Unknown, Nullable<DateTime> lastChanged = null, Nullable<Int32> daysInactive = null) #

Initializes a new instance of the ForestTrust struct.

Parameters

sourceForest System.String requiredposition: 0
targetForest System.String requiredposition: 1
trustType System.DirectoryServices.ActiveDirectory.TrustType requiredposition: 2
direction System.DirectoryServices.ActiveDirectory.TrustDirection requiredposition: 3
validationStatus ADPlayground.Trusts.TrustValidationStatus = Unknown optionalposition: 4
lastChanged System.Nullable{System.DateTime} = null optionalposition: 5
daysInactive System.Nullable{System.Int32} = null optionalposition: 6

Methods

public ForestTrust WithInactiveInfo(Nullable<DateTime> lastChanged, Nullable<Int32> daysInactive) #
Returns: ForestTrust

Creates a copy of the current trust with inactivity information.

Parameters

lastChanged System.Nullable{System.DateTime} requiredposition: 0
daysInactive System.Nullable{System.Int32} requiredposition: 1
public ForestTrust WithValidationStatus(TrustValidationStatus status) #
Returns: ForestTrust

Creates a copy of the current trust with the specified validation status.

Parameters

status ADPlayground.Trusts.TrustValidationStatus requiredposition: 0

Properties

public String SourceForest { get; } #

Gets the source forest name.

public String TargetForest { get; } #

Gets the target forest name.

public TrustType TrustType { get; } #

Gets the trust type.

public TrustDirection Direction { get; } #

Gets the trust direction.

public TrustValidationStatus ValidationStatus { get; } #

Gets the validation status.

public Nullable<DateTime> LastChanged { get; } #

Gets the last time the trust object changed.

public Nullable<Int32> DaysInactive { get; } #

Gets the number of days since the trust object last changed.