API Reference
Struct
ForestTrust
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
- targetForest System.String
- trustType System.DirectoryServices.ActiveDirectory.TrustType
- direction System.DirectoryServices.ActiveDirectory.TrustDirection
- validationStatus ADPlayground.Trusts.TrustValidationStatus = Unknown
- lastChanged System.Nullable{System.DateTime} = null
- daysInactive System.Nullable{System.Int32} = null
Methods
public ForestTrust WithInactiveInfo(Nullable<DateTime> lastChanged, Nullable<Int32> daysInactive) #Returns:
ForestTrustCreates a copy of the current trust with inactivity information.
Parameters
- lastChanged System.Nullable{System.DateTime}
- daysInactive System.Nullable{System.Int32}
public ForestTrust WithValidationStatus(TrustValidationStatus status) #Returns:
ForestTrustCreates a copy of the current trust with the specified validation status.
Parameters
- status ADPlayground.Trusts.TrustValidationStatus
Inherited Methods
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.