Class SecurityIdentifier
- Namespace
- ArcanaDevelopment.adTempus.Shared
- Assembly
- ArcanaDevelopment.adTempus.Shared.dll
[DataContract]
public class SecurityIdentifier
- Inheritance
-
objectSecurityIdentifier
Constructors
SecurityIdentifier()
public SecurityIdentifier()
SecurityIdentifier(byte[])
public SecurityIdentifier(byte[] source)
Parameters
| Name | Type | Description |
|---|---|---|
source |
byte[] |
SecurityIdentifier(SecurityIdentifier)
public SecurityIdentifier(SecurityIdentifier sid)
Parameters
| Name | Type | Description |
|---|---|---|
sid |
SecurityIdentifier |
SecurityIdentifier(WellKnownSidType)
public SecurityIdentifier(WellKnownSidType sidType)
Parameters
| Name | Type | Description |
|---|---|---|
sidType |
WellKnownSidType |
SecurityIdentifier(string)
Creates a new SecurityIdentifier from an SDDL string.
public SecurityIdentifier(string source)
Parameters
| Name | Type | Description |
|---|---|---|
source |
string |
Remarks
To create the SecurityIdentifier from a user name, use SecurityDescriptor.FromNameLookup
Properties
AccountResolved
public bool AccountResolved { get; }
Property Value
- bool
Domain
public string Domain { get; set; }
Property Value
- string
FullName
Gets the full user name in the form "domain\name"
[IgnoreDataMember]
public string FullName { get; }
Property Value
- string
LookupErrorCode
[IgnoreDataMember]
public int LookupErrorCode { get; }
Property Value
- int
LookupErrorMessage
[IgnoreDataMember]
public string LookupErrorMessage { get; }
Property Value
- string
Name
public string Name { get; set; }
Property Value
- string
NameUse
public SIDNameUse NameUse { get; set; }
Property Value
SID
[IgnoreDataMember]
public SecurityIdentifier SID { get; }
Property Value
- SecurityIdentifier
SIDString
[DataMember]
public string SIDString { get; set; }
Property Value
- string
Methods
CompareTo(SecurityIdentifier)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
public int CompareTo(SecurityIdentifier other)
Parameters
| Name | Type | Description |
|---|---|---|
other |
SecurityIdentifier | An object to compare with this instance. |
Returns
- int
A value that indicates the relative order of the objects being compared. The return value has these meanings:
ValueMeaning
Less than zero
This instance precedes
otherin the sort order.Zero
This instance occurs in the same position in the sort order as
other.Greater than zero
This instance follows
otherin the sort order.
Equals(SecurityIdentifier)
public bool Equals(SecurityIdentifier other)
Parameters
| Name | Type | Description |
|---|---|---|
other |
SecurityIdentifier |
Returns
- bool
Equals(SecurityIdentifier)
public bool Equals(SecurityIdentifier other)
Parameters
| Name | Type | Description |
|---|---|---|
other |
SecurityIdentifier |
Returns
- bool
FromNameLookup(string)
public static SecurityIdentifier FromNameLookup(string name)
Parameters
| Name | Type | Description |
|---|---|---|
name |
string |
Returns
IsWellKnownSid(WellKnownSidType)
public bool IsWellKnownSid(WellKnownSidType sidType)
Parameters
| Name | Type | Description |
|---|---|---|
sidType |
WellKnownSidType |
Returns
- bool
LookupAccount()
public bool LookupAccount()
Returns
- bool
ToBinaryForm()
public byte[] ToBinaryForm()
Returns
- byte[]
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.