Table of Contents

Class SecurityIdentifier

Namespace
ArcanaDevelopment.adTempus.Shared
Assembly
ArcanaDevelopment.adTempus.Shared.dll
[DataContract]
public class SecurityIdentifier
Inheritance
object
SecurityIdentifier

Constructors

SecurityIdentifier()

public SecurityIdentifier()

SecurityIdentifier(byte[])

public SecurityIdentifier(byte[] source)

Parameters

NameTypeDescription
source byte[]

SecurityIdentifier(SecurityIdentifier)

public SecurityIdentifier(SecurityIdentifier sid)

Parameters

NameTypeDescription
sid SecurityIdentifier

SecurityIdentifier(WellKnownSidType)

public SecurityIdentifier(WellKnownSidType sidType)

Parameters

NameTypeDescription
sidType WellKnownSidType

SecurityIdentifier(string)

Creates a new SecurityIdentifier from an SDDL string.

public SecurityIdentifier(string source)

Parameters

NameTypeDescription
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

SIDNameUse

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

NameTypeDescription
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:
Value

Meaning

Less than zero

This instance precedes other in the sort order.

Zero

This instance occurs in the same position in the sort order as other.

Greater than zero

This instance follows other in the sort order.

Equals(SecurityIdentifier)

public bool Equals(SecurityIdentifier other)

Parameters

NameTypeDescription
other SecurityIdentifier

Returns

bool

Equals(SecurityIdentifier)

public bool Equals(SecurityIdentifier other)

Parameters

NameTypeDescription
other SecurityIdentifier

Returns

bool

FromNameLookup(string)

public static SecurityIdentifier FromNameLookup(string name)

Parameters

NameTypeDescription
name string

Returns

SecurityIdentifier

IsWellKnownSid(WellKnownSidType)

public bool IsWellKnownSid(WellKnownSidType sidType)

Parameters

NameTypeDescription
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.