API Reference
Class
DirectoryIdentity
Represents a parsed directory identity with its kind.
Inheritance
- Object
- DirectoryIdentity
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Method DirectoryIdentity.Parse
Accepted by parameters
- Method DirectoryIdentity.TryParse
Constructors
DirectoryIdentity(ADPlayground.Identity.IdentityInputKind kind, System.String value) #Initializes a new instance of the DirectoryIdentity class.
Parameters
- kind ADPlayground.Identity.IdentityInputKind
- The identity kind.
- value System.String
- The identity value.
Methods
public static DirectoryIdentity Parse(String identity) #Returns:
DirectoryIdentityParses the provided string into a DirectoryIdentity.
Parameters
- identity System.String
- Identity string in DN, SID, UPN or SAM format.
Returns
Parsed DirectoryIdentity.
public static Boolean TryParse(String identity, out DirectoryIdentity result) #Returns:
BooleanAttempts to parse the provided string into a DirectoryIdentity.
Parameters
- identity System.String
- Identity string in DN, SID, UPN or SAM format.
- result ADPlayground.Identity.DirectoryIdentity@
- Parsed identity on success.
Returns
true when parsing succeeds.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
Properties
public IdentityInputKind Kind { get; } #Gets the identity kind.