1 <?xml version="1.0" encoding="utf-8"?><span>
4 <name>System.Security.Principal.Windows</name>
7 <member name="T:System.Security.Principal.IdentityNotMappedException">
8 <summary>Represents an exception for a principal whose identity could not be mapped to a known identity.</summary>
10 <member name="M:System.Security.Principal.IdentityNotMappedException.#ctor">
11 <summary>Initializes a new instance of the <see cref="T:System.Security.Principal.IdentityNotMappedException"></see> class.</summary>
13 <member name="M:System.Security.Principal.IdentityNotMappedException.#ctor(System.String)">
14 <summary>Initializes a new instance of the <see cref="T:System.Security.Principal.IdentityNotMappedException"></see> class by using the specified error message.</summary>
15 <param name="message">The error message that explains the reason for the exception.</param>
17 <member name="M:System.Security.Principal.IdentityNotMappedException.#ctor(System.String,System.Exception)">
18 <summary>Initializes a new instance of the <see cref="T:System.Security.Principal.IdentityNotMappedException"></see> class by using the specified error message and inner exception.</summary>
19 <param name="message">The error message that explains the reason for the exception.</param>
20 <param name="inner">The exception that is the cause of the current exception. If inner is not null, the current exception is raised in a catch block that handles the inner exception.</param>
22 <member name="M:System.Security.Principal.IdentityNotMappedException.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
23 <summary>Gets serialization information with the data needed to create an instance of this <see cref="T:System.Security.Principal.IdentityNotMappedException"></see> object.</summary>
24 <param name="serializationInfo">The object that holds the serialized object data about the exception being thrown.</param>
25 <param name="streamingContext">The object that contains contextual information about the source or destination.</param>
27 <member name="P:System.Security.Principal.IdentityNotMappedException.UnmappedIdentities">
28 <summary>Represents the collection of unmapped identities for an <see cref="T:System.Security.Principal.IdentityNotMappedException"></see> exception.</summary>
29 <returns>The collection of unmapped identities.</returns>
31 <member name="T:System.Security.Principal.IdentityReference">
32 <summary>Represents an identity and is the base class for the <see cref="T:System.Security.Principal.NTAccount"></see> and <see cref="T:System.Security.Principal.SecurityIdentifier"></see> classes. This class does not provide a public constructor, and therefore cannot be inherited.</summary>
34 <member name="M:System.Security.Principal.IdentityReference.Equals(System.Object)">
35 <summary>Returns a value that indicates whether the specified object equals this instance of the <see cref="T:System.Security.Principal.IdentityReference"></see> class.</summary>
36 <param name="o">An object to compare with this <see cref="T:System.Security.Principal.IdentityReference"></see> instance, or a null reference.</param>
37 <returns>true if <paramref name="o">o</paramref> is an object with the same underlying type and value as this <see cref="T:System.Security.Principal.IdentityReference"></see> instance; otherwise, false.</returns>
39 <member name="M:System.Security.Principal.IdentityReference.GetHashCode">
40 <summary>Serves as a hash function for <see cref="T:System.Security.Principal.IdentityReference"></see>. <see cref="M:System.Security.Principal.IdentityReference.GetHashCode"></see> is suitable for use in hashing algorithms and data structures like a hash table.</summary>
41 <returns>The hash code for this <see cref="T:System.Security.Principal.IdentityReference"></see> object.</returns>
43 <member name="M:System.Security.Principal.IdentityReference.IsValidTargetType(System.Type)">
44 <summary>Returns a value that indicates whether the specified type is a valid translation type for the <see cref="T:System.Security.Principal.IdentityReference"></see> class.</summary>
45 <param name="targetType">The type being queried for validity to serve as a conversion from <see cref="T:System.Security.Principal.IdentityReference"></see>. The following target types are valid: <see cref="T:System.Security.Principal.NTAccount"></see><see cref="T:System.Security.Principal.SecurityIdentifier"></see></param>
46 <returns>true if <paramref name="targetType">targetType</paramref> is a valid translation type for the <see cref="T:System.Security.Principal.IdentityReference"></see> class; otherwise, false.</returns>
48 <member name="M:System.Security.Principal.IdentityReference.op_Equality(System.Security.Principal.IdentityReference,System.Security.Principal.IdentityReference)">
49 <summary>Compares two <see cref="T:System.Security.Principal.IdentityReference"></see> objects to determine whether they are equal. They are considered equal if they have the same canonical name representation as the one returned by the <see cref="P:System.Security.Principal.IdentityReference.Value"></see> property or if they are both null.</summary>
50 <param name="left">The left <see cref="T:System.Security.Principal.IdentityReference"></see> operand to use for the equality comparison. This parameter can be null.</param>
51 <param name="right">The right <see cref="T:System.Security.Principal.IdentityReference"></see> operand to use for the equality comparison. This parameter can be null.</param>
52 <returns>true if <paramref name="left">left</paramref> and <paramref name="right">right</paramref> are equal; otherwise, false.</returns>
54 <member name="M:System.Security.Principal.IdentityReference.op_Inequality(System.Security.Principal.IdentityReference,System.Security.Principal.IdentityReference)">
55 <summary>Compares two <see cref="T:System.Security.Principal.IdentityReference"></see> objects to determine whether they are not equal. They are considered not equal if they have different canonical name representations than the one returned by the <see cref="P:System.Security.Principal.IdentityReference.Value"></see> property or if one of the objects is null and the other is not.</summary>
56 <param name="left">The left <see cref="T:System.Security.Principal.IdentityReference"></see> operand to use for the inequality comparison. This parameter can be null.</param>
57 <param name="right">The right <see cref="T:System.Security.Principal.IdentityReference"></see> operand to use for the inequality comparison. This parameter can be null.</param>
58 <returns>true if <paramref name="left">left</paramref> and <paramref name="right">right</paramref> are not equal; otherwise, false.</returns>
60 <member name="M:System.Security.Principal.IdentityReference.ToString">
61 <summary>Returns the string representation of the identity represented by the <see cref="T:System.Security.Principal.IdentityReference"></see> object.</summary>
62 <returns>The identity in string format.</returns>
64 <member name="M:System.Security.Principal.IdentityReference.Translate(System.Type)">
65 <summary>Translates the account name represented by the <see cref="T:System.Security.Principal.IdentityReference"></see> object into another <see cref="T:System.Security.Principal.IdentityReference"></see>-derived type.</summary>
66 <param name="targetType">The target type for the conversion from <see cref="T:System.Security.Principal.IdentityReference"></see>.</param>
67 <returns>The converted identity.</returns>
69 <member name="P:System.Security.Principal.IdentityReference.Value">
70 <summary>Gets the string value of the identity represented by the <see cref="T:System.Security.Principal.IdentityReference"></see> object.</summary>
71 <returns>The string value of the identity represented by the <see cref="T:System.Security.Principal.IdentityReference"></see> object.</returns>
73 <member name="T:System.Security.Principal.IdentityReferenceCollection">
74 <summary>Represents a collection of <see cref="T:System.Security.Principal.IdentityReference"></see> objects and provides a means of converting sets of <see cref="T:System.Security.Principal.IdentityReference"></see>-derived objects to <see cref="T:System.Security.Principal.IdentityReference"></see>-derived types.</summary>
76 <member name="M:System.Security.Principal.IdentityReferenceCollection.#ctor">
77 <summary>Initializes a new instance of the <see cref="T:System.Security.Principal.IdentityReferenceCollection"></see> class with zero items in the collection.</summary>
79 <member name="M:System.Security.Principal.IdentityReferenceCollection.#ctor(System.Int32)">
80 <summary>Initializes a new instance of the <see cref="T:System.Security.Principal.IdentityReferenceCollection"></see> class by using the specified initial size.</summary>
81 <param name="capacity">The initial number of items in the collection. The value of capacity is a hint only; it is not necessarily the maximum number of items created.</param>
83 <member name="M:System.Security.Principal.IdentityReferenceCollection.Add(System.Security.Principal.IdentityReference)">
84 <summary>Adds an <see cref="T:System.Security.Principal.IdentityReference"></see> object to the <see cref="T:System.Security.Principal.IdentityReferenceCollection"></see> collection.</summary>
85 <param name="identity">The <see cref="T:System.Security.Principal.IdentityReference"></see> object to add to the collection.</param>
86 <exception cref="T:System.ArgumentNullException"><paramref name="identity">identity</paramref> is null.</exception>
88 <member name="M:System.Security.Principal.IdentityReferenceCollection.Clear">
89 <summary>Clears all <see cref="T:System.Security.Principal.IdentityReference"></see> objects from the <see cref="T:System.Security.Principal.IdentityReferenceCollection"></see> collection.</summary>
91 <member name="M:System.Security.Principal.IdentityReferenceCollection.Contains(System.Security.Principal.IdentityReference)">
92 <summary>Indicates whether the <see cref="T:System.Security.Principal.IdentityReferenceCollection"></see> collection contains the specified <see cref="T:System.Security.Principal.IdentityReference"></see> object.</summary>
93 <param name="identity">The <see cref="T:System.Security.Principal.IdentityReference"></see> object to check for.</param>
94 <returns>true if the collection contains the specified object.</returns>
95 <exception cref="T:System.ArgumentNullException"><paramref name="identity">identity</paramref> is null.</exception>
97 <member name="M:System.Security.Principal.IdentityReferenceCollection.CopyTo(System.Security.Principal.IdentityReference[],System.Int32)">
98 <summary>Copies the <see cref="T:System.Security.Principal.IdentityReferenceCollection"></see> collection to an <see cref="T:System.Security.Principal.IdentityReferenceCollection"></see> array, starting at the specified index.</summary>
99 <param name="array">An <see cref="T:System.Security.Principal.IdentityReferenceCollection"></see> array object to which the <see cref="T:System.Security.Principal.IdentityReferenceCollection"></see> collection is to be copied.</param>
100 <param name="offset">The zero-based index in array where the <see cref="T:System.Security.Principal.IdentityReferenceCollection"></see> collection is to be copied.</param>
102 <member name="P:System.Security.Principal.IdentityReferenceCollection.Count">
103 <summary>Gets the number of items in the <see cref="T:System.Security.Principal.IdentityReferenceCollection"></see> collection.</summary>
104 <returns>The number of <see cref="T:System.Security.Principal.IdentityReference"></see> objects in the <see cref="T:System.Security.Principal.IdentityReferenceCollection"></see> collection.</returns>
106 <member name="M:System.Security.Principal.IdentityReferenceCollection.GetEnumerator">
107 <summary>Gets an enumerator that can be used to iterate through the <see cref="T:System.Security.Principal.IdentityReferenceCollection"></see> collection.</summary>
108 <returns>An enumerator for the <see cref="T:System.Security.Principal.IdentityReferenceCollection"></see> collection.</returns>
110 <member name="P:System.Security.Principal.IdentityReferenceCollection.Item(System.Int32)">
111 <summary>Sets or gets the node at the specified index of the <see cref="T:System.Security.Principal.IdentityReferenceCollection"></see> collection.</summary>
112 <param name="index">The zero-based index in the <see cref="T:System.Security.Principal.IdentityReferenceCollection"></see> collection.</param>
113 <returns>The <see cref="T:System.Security.Principal.IdentityReference"></see> at the specified index in the collection. If <paramref name="index">index</paramref> is greater than or equal to the number of nodes in the collection, the return value is null.</returns>
115 <member name="M:System.Security.Principal.IdentityReferenceCollection.Remove(System.Security.Principal.IdentityReference)">
116 <summary>Removes the specified <see cref="T:System.Security.Principal.IdentityReference"></see> object from the collection.</summary>
117 <param name="identity">The <see cref="T:System.Security.Principal.IdentityReference"></see> object to remove.</param>
118 <returns>true if the specified object was removed from the collection.</returns>
119 <exception cref="T:System.ArgumentNullException"><paramref name="identity">identity</paramref> is null.</exception>
121 <member name="M:System.Security.Principal.IdentityReferenceCollection.Translate(System.Type)">
122 <summary>Converts the objects in the collection to the specified type. Calling this method is the same as calling <see cref="M:System.Security.Principal.IdentityReferenceCollection.Translate(System.Type,System.Boolean)"></see> with the second parameter set to false, which means that exceptions will not be thrown for items that fail conversion.</summary>
123 <param name="targetType">The type to which items in the collection are being converted.</param>
124 <returns>A <see cref="T:System.Security.Principal.IdentityReferenceCollection"></see> collection that represents the converted contents of the original collection.</returns>
126 <member name="M:System.Security.Principal.IdentityReferenceCollection.Translate(System.Type,System.Boolean)">
127 <summary>Converts the objects in the collection to the specified type and uses the specified fault tolerance to handle or ignore errors associated with a type not having a conversion mapping.</summary>
128 <param name="targetType">The type to which items in the collection are being converted.</param>
129 <param name="forceSuccess">A Boolean value that determines how conversion errors are handled. If forceSuccess is true, conversion errors due to a mapping not being found for the translation result in a failed conversion and exceptions being thrown. If forceSuccess is false, types that failed to convert due to a mapping not being found for the translation are copied without being converted into the collection being returned.</param>
130 <returns>A <see cref="T:System.Security.Principal.IdentityReferenceCollection"></see> collection that represents the converted contents of the original collection.</returns>
132 <member name="P:System.Security.Principal.IdentityReferenceCollection.System#Collections#Generic#ICollection{System#Security#Principal#IdentityReference}#IsReadOnly">
135 <member name="M:System.Security.Principal.IdentityReferenceCollection.System#Collections#IEnumerable#GetEnumerator">
136 <summary>Gets an enumerator that can be used to iterate through the <see cref="T:System.Security.Principal.IdentityReferenceCollection"></see> collection.</summary>
137 <returns>An enumerator for the <see cref="T:System.Security.Principal.IdentityReferenceCollection"></see> collection.</returns>
139 <member name="T:System.Security.Principal.NTAccount">
140 <summary>Represents a user or group account.</summary>
142 <member name="M:System.Security.Principal.NTAccount.#ctor(System.String)">
143 <summary>Initializes a new instance of the <see cref="T:System.Security.Principal.NTAccount"></see> class by using the specified name.</summary>
144 <param name="name">The name used to create the <see cref="T:System.Security.Principal.NTAccount"></see> object. This parameter cannot be null or an empty string.</param>
145 <exception cref="T:System.ArgumentNullException"><paramref name="name">name</paramref> is null.</exception>
146 <exception cref="T:System.ArgumentException"><paramref name="name">name</paramref> is an empty string. -or- <paramref name="name">name</paramref> is too long.</exception>
148 <member name="M:System.Security.Principal.NTAccount.#ctor(System.String,System.String)">
149 <summary>Initializes a new instance of the <see cref="T:System.Security.Principal.NTAccount"></see> class by using the specified domain name and account name.</summary>
150 <param name="domainName">The name of the domain. This parameter can be null or an empty string. Domain names that are null values are treated like an empty string.</param>
151 <param name="accountName">The name of the account. This parameter cannot be null or an empty string.</param>
152 <exception cref="T:System.ArgumentNullException"><paramref name="accountName">accountName</paramref> is null.</exception>
153 <exception cref="T:System.ArgumentException"><paramref name="accountName">accountName</paramref> is an empty string. -or- <paramref name="accountName">accountName</paramref> is too long. -or- <paramref name="domainName">domainName</paramref> is too long.</exception>
155 <member name="M:System.Security.Principal.NTAccount.Equals(System.Object)">
156 <summary>Returns a value that indicates whether this <see cref="T:System.Security.Principal.NTAccount"></see> object is equal to a specified object.</summary>
157 <param name="o">An object to compare with this <see cref="T:System.Security.Principal.NTAccount"></see> object, or null.</param>
158 <returns>true if <paramref name="o">o</paramref> is an object with the same underlying type and value as this <see cref="T:System.Security.Principal.NTAccount"></see> object; otherwise, false.</returns>
160 <member name="M:System.Security.Principal.NTAccount.GetHashCode">
161 <summary>Serves as a hash function for the current <see cref="T:System.Security.Principal.NTAccount"></see> object. The <see cref="M:System.Security.Principal.NTAccount.GetHashCode"></see> method is suitable for hashing algorithms and data structures like a hash table.</summary>
162 <returns>A hash value for the current <see cref="T:System.Security.Principal.NTAccount"></see> object.</returns>
164 <member name="M:System.Security.Principal.NTAccount.IsValidTargetType(System.Type)">
165 <summary>Returns a value that indicates whether the specified type is a valid translation type for the <see cref="T:System.Security.Principal.NTAccount"></see> class.</summary>
166 <param name="targetType">The type being queried for validity to serve as a conversion from <see cref="T:System.Security.Principal.NTAccount"></see>. The following target types are valid: - <see cref="T:System.Security.Principal.NTAccount"></see> - <see cref="T:System.Security.Principal.SecurityIdentifier"></see></param>
167 <returns>true if <paramref name="targetType">targetType</paramref> is a valid translation type for the <see cref="T:System.Security.Principal.NTAccount"></see> class; otherwise false.</returns>
169 <member name="M:System.Security.Principal.NTAccount.op_Equality(System.Security.Principal.NTAccount,System.Security.Principal.NTAccount)">
170 <summary>Compares two <see cref="T:System.Security.Principal.NTAccount"></see> objects to determine whether they are equal. They are considered equal if they have the same canonical name representation as the one returned by the <see cref="P:System.Security.Principal.NTAccount.Value"></see> property or if they are both null.</summary>
171 <param name="left">The left operand to use for the equality comparison. This parameter can be null.</param>
172 <param name="right">The right operand to use for the equality comparison. This parameter can be null.</param>
173 <returns>true if <paramref name="left">left</paramref> and <paramref name="right">right</paramref> are equal; otherwise false.</returns>
175 <member name="M:System.Security.Principal.NTAccount.op_Inequality(System.Security.Principal.NTAccount,System.Security.Principal.NTAccount)">
176 <summary>Compares two <see cref="T:System.Security.Principal.NTAccount"></see> objects to determine whether they are not equal. They are considered not equal if they have different canonical name representations than the one returned by the <see cref="P:System.Security.Principal.NTAccount.Value"></see> property or if one of the objects is null and the other is not.</summary>
177 <param name="left">The left operand to use for the inequality comparison. This parameter can be null.</param>
178 <param name="right">The right operand to use for the inequality comparison. This parameter can be null.</param>
179 <returns>true if <paramref name="left">left</paramref> and <paramref name="right">right</paramref> are not equal; otherwise false.</returns>
181 <member name="M:System.Security.Principal.NTAccount.ToString">
182 <summary>Returns the account name, in Domain\Account format, for the account represented by the <see cref="T:System.Security.Principal.NTAccount"></see> object.</summary>
183 <returns>The account name, in Domain\Account format.</returns>
185 <member name="M:System.Security.Principal.NTAccount.Translate(System.Type)">
186 <summary>Translates the account name represented by the <see cref="T:System.Security.Principal.NTAccount"></see> object into another <see cref="T:System.Security.Principal.IdentityReference"></see>-derived type.</summary>
187 <param name="targetType">The target type for the conversion from <see cref="T:System.Security.Principal.NTAccount"></see>. The target type must be a type that is considered valid by the <see cref="M:System.Security.Principal.NTAccount.IsValidTargetType(System.Type)"></see> method.</param>
188 <returns>The converted identity.</returns>
189 <exception cref="T:System.ArgumentNullException"><paramref name="targetType">targetType</paramref> is null.</exception>
190 <exception cref="T:System.ArgumentException"><paramref name="targetType">targetType</paramref> is not an <see cref="T:System.Security.Principal.IdentityReference"></see> type.</exception>
191 <exception cref="T:System.Security.Principal.IdentityNotMappedException">Some or all identity references could not be translated.</exception>
192 <exception cref="T:System.SystemException">The source account name is too long. -or- A Win32 error code was returned.</exception>
194 <member name="P:System.Security.Principal.NTAccount.Value">
195 <summary>Returns an uppercase string representation of this <see cref="T:System.Security.Principal.NTAccount"></see> object.</summary>
196 <returns>The uppercase string representation of this <see cref="T:System.Security.Principal.NTAccount"></see> object.</returns>
198 <member name="T:System.Security.Principal.SecurityIdentifier">
199 <summary>Represents a security identifier (SID) and provides marshaling and comparison operations for SIDs.</summary>
201 <member name="M:System.Security.Principal.SecurityIdentifier.#ctor(System.IntPtr)">
202 <summary>Initializes a new instance of the <see cref="T:System.Security.Principal.SecurityIdentifier"></see> class by using an integer that represents the binary form of a security identifier (SID).</summary>
203 <param name="binaryForm">An integer that represents the binary form of a SID.</param>
205 <member name="M:System.Security.Principal.SecurityIdentifier.#ctor(System.String)">
206 <summary>Initializes a new instance of the <see cref="T:System.Security.Principal.SecurityIdentifier"></see> class by using the specified security identifier (SID) in Security Descriptor Definition Language (SDDL) format.</summary>
207 <param name="sddlForm">SDDL string for the SID used to create the <see cref="T:System.Security.Principal.SecurityIdentifier"></see> object.</param>
209 <member name="M:System.Security.Principal.SecurityIdentifier.#ctor(System.Byte[],System.Int32)">
210 <summary>Initializes a new instance of the <see cref="T:System.Security.Principal.SecurityIdentifier"></see> class by using a specified binary representation of a security identifier (SID).</summary>
211 <param name="binaryForm">The byte array that represents the SID.</param>
212 <param name="offset">The byte offset to use as the starting index in binaryForm.</param>
214 <member name="M:System.Security.Principal.SecurityIdentifier.#ctor(System.Security.Principal.WellKnownSidType,System.Security.Principal.SecurityIdentifier)">
215 <summary>Initializes a new instance of the <see cref="T:System.Security.Principal.SecurityIdentifier"></see> class by using the specified well known security identifier (SID) type and domain SID.</summary>
216 <param name="sidType">One of the enumeration values. This value must not be <see cref="F:System.Security.Principal.WellKnownSidType.LogonIdsSid"></see>.</param>
217 <param name="domainSid">The domain SID. This value is required for the following <see cref="T:System.Security.Principal.WellKnownSidType"></see> values. This parameter is ignored for any other <see cref="T:System.Security.Principal.WellKnownSidType"></see> values. - <see cref="F:System.Security.Principal.WellKnownSidType.AccountAdministratorSid"></see> - <see cref="F:System.Security.Principal.WellKnownSidType.AccountGuestSid"></see> - <see cref="F:System.Security.Principal.WellKnownSidType.AccountKrbtgtSid"></see> - <see cref="F:System.Security.Principal.WellKnownSidType.AccountDomainAdminsSid"></see> - <see cref="F:System.Security.Principal.WellKnownSidType.AccountDomainUsersSid"></see> - <see cref="F:System.Security.Principal.WellKnownSidType.AccountDomainGuestsSid"></see> - <see cref="F:System.Security.Principal.WellKnownSidType.AccountComputersSid"></see> - <see cref="F:System.Security.Principal.WellKnownSidType.AccountControllersSid"></see> - <see cref="F:System.Security.Principal.WellKnownSidType.AccountCertAdminsSid"></see> - <see cref="F:System.Security.Principal.WellKnownSidType.AccountSchemaAdminsSid"></see> - <see cref="F:System.Security.Principal.WellKnownSidType.AccountEnterpriseAdminsSid"></see> - <see cref="F:System.Security.Principal.WellKnownSidType.AccountPolicyAdminsSid"></see> - <see cref="F:System.Security.Principal.WellKnownSidType.AccountRasAndIasServersSid"></see></param>
219 <member name="P:System.Security.Principal.SecurityIdentifier.AccountDomainSid">
220 <summary>Returns the account domain security identifier (SID) portion from the SID represented by the <see cref="T:System.Security.Principal.SecurityIdentifier"></see> object if the SID represents a Windows account SID. If the SID does not represent a Windows account SID, this property returns <see cref="T:System.ArgumentNullException"></see>.</summary>
221 <returns>The account domain SID portion from the SID represented by the <see cref="T:System.Security.Principal.SecurityIdentifier"></see> object if the SID represents a Windows account SID; otherwise, it returns <see cref="T:System.ArgumentNullException"></see>.</returns>
223 <member name="P:System.Security.Principal.SecurityIdentifier.BinaryLength">
224 <summary>Returns the length, in bytes, of the security identifier (SID) represented by the <see cref="T:System.Security.Principal.SecurityIdentifier"></see> object.</summary>
225 <returns>The length, in bytes, of the SID represented by the <see cref="T:System.Security.Principal.SecurityIdentifier"></see> object.</returns>
227 <member name="M:System.Security.Principal.SecurityIdentifier.CompareTo(System.Security.Principal.SecurityIdentifier)">
228 <summary>Compares the current <see cref="T:System.Security.Principal.SecurityIdentifier"></see> object with the specified <see cref="T:System.Security.Principal.SecurityIdentifier"></see> object.</summary>
229 <param name="sid">The object to compare with the current object.</param>
230 <returns><p sourcefile="System.Security.Principal.Windows.yml" sourcestartlinenumber="1" sourceendlinenumber="2"><p sourcefile="System.Security.Principal.Windows.yml" sourcestartlinenumber="1" sourceendlinenumber="1">A signed number indicating the relative values of this instance and <code data-dev-comment-type="paramref">sid</code>. </p>
231 <table><thead><tr><th> Return Value <p>
232 <p sourcefile="System.Security.Principal.Windows.yml" sourcestartlinenumber="4" sourceendlinenumber="4"> </th><th> Description <p>
233 <p sourcefile="System.Security.Principal.Windows.yml" sourcestartlinenumber="6" sourceendlinenumber="6"> </th></tr></thead><tbody><tr><td> Less than zero <p>
234 <p sourcefile="System.Security.Principal.Windows.yml" sourcestartlinenumber="8" sourceendlinenumber="8"> </td><td> This instance is less than <code data-dev-comment-type="paramref">sid</code>. <p>
235 <p sourcefile="System.Security.Principal.Windows.yml" sourcestartlinenumber="10" sourceendlinenumber="10"> </td></tr><tr><td> Zero <p>
236 <p sourcefile="System.Security.Principal.Windows.yml" sourcestartlinenumber="12" sourceendlinenumber="12"> </td><td> This instance is equal to <code data-dev-comment-type="paramref">sid</code>. <p>
237 <p sourcefile="System.Security.Principal.Windows.yml" sourcestartlinenumber="14" sourceendlinenumber="14"> </td></tr><tr><td> Greater than zero <p>
238 <p sourcefile="System.Security.Principal.Windows.yml" sourcestartlinenumber="16" sourceendlinenumber="16"> </td><td> This instance is greater than <code data-dev-comment-type="paramref">sid</code>. <p>
239 <p sourcefile="System.Security.Principal.Windows.yml" sourcestartlinenumber="18" sourceendlinenumber="18"> </td></tr></tbody></table></p>
242 <member name="M:System.Security.Principal.SecurityIdentifier.Equals(System.Object)">
243 <summary>Returns a value that indicates whether this <see cref="T:System.Security.Principal.SecurityIdentifier"></see> object is equal to a specified object.</summary>
244 <param name="o">An object to compare with this <see cref="T:System.Security.Principal.SecurityIdentifier"></see> object, or null.</param>
245 <returns>true if <paramref name="o">o</paramref> is an object with the same underlying type and value as this <see cref="T:System.Security.Principal.SecurityIdentifier"></see> object; otherwise, false.</returns>
247 <member name="M:System.Security.Principal.SecurityIdentifier.Equals(System.Security.Principal.SecurityIdentifier)">
248 <summary>Indicates whether the specified <see cref="T:System.Security.Principal.SecurityIdentifier"></see> object is equal to the current <see cref="T:System.Security.Principal.SecurityIdentifier"></see> object.</summary>
249 <param name="sid">The object to compare with the current object.</param>
250 <returns>true if the value of <paramref name="sid">sid</paramref> is equal to the value of the current <see cref="T:System.Security.Principal.SecurityIdentifier"></see> object.</returns>
252 <member name="M:System.Security.Principal.SecurityIdentifier.GetBinaryForm(System.Byte[],System.Int32)">
253 <summary>Copies the binary representation of the specified security identifier (SID) represented by the <see cref="T:System.Security.Principal.SecurityIdentifier"></see> class to a byte array.</summary>
254 <param name="binaryForm">The byte array to receive the copied SID.</param>
255 <param name="offset">The byte offset to use as the starting index in binaryForm.</param>
257 <member name="M:System.Security.Principal.SecurityIdentifier.GetHashCode">
258 <summary>Serves as a hash function for the current <see cref="T:System.Security.Principal.SecurityIdentifier"></see> object. The <see cref="M:System.Security.Principal.SecurityIdentifier.GetHashCode"></see> method is suitable for hashing algorithms and data structures like a hash table.</summary>
259 <returns>A hash value for the current <see cref="T:System.Security.Principal.SecurityIdentifier"></see> object.</returns>
261 <member name="M:System.Security.Principal.SecurityIdentifier.IsAccountSid">
262 <summary>Returns a value that indicates whether the security identifier (SID) represented by this <see cref="T:System.Security.Principal.SecurityIdentifier"></see> object is a valid Windows account SID.</summary>
263 <returns>true if the SID represented by this <see cref="T:System.Security.Principal.SecurityIdentifier"></see> object is a valid Windows account SID; otherwise, false.</returns>
265 <member name="M:System.Security.Principal.SecurityIdentifier.IsEqualDomainSid(System.Security.Principal.SecurityIdentifier)">
266 <summary>Returns a value that indicates whether the security identifier (SID) represented by this <see cref="T:System.Security.Principal.SecurityIdentifier"></see> object is from the same domain as the specified SID.</summary>
267 <param name="sid">The SID to compare with this <see cref="T:System.Security.Principal.SecurityIdentifier"></see> object.</param>
268 <returns>true if the SID represented by this <see cref="T:System.Security.Principal.SecurityIdentifier"></see> object is in the same domain as the <paramref name="sid">sid</paramref> SID; otherwise, false.</returns>
270 <member name="M:System.Security.Principal.SecurityIdentifier.IsValidTargetType(System.Type)">
271 <summary>Returns a value that indicates whether the specified type is a valid translation type for the <see cref="T:System.Security.Principal.SecurityIdentifier"></see> class.</summary>
272 <param name="targetType">The type being queried for validity to serve as a conversion from <see cref="T:System.Security.Principal.SecurityIdentifier"></see>. The following target types are valid: - <see cref="T:System.Security.Principal.NTAccount"></see> - <see cref="T:System.Security.Principal.SecurityIdentifier"></see></param>
273 <returns>true if <paramref name="targetType">targetType</paramref> is a valid translation type for the <see cref="T:System.Security.Principal.SecurityIdentifier"></see> class; otherwise, false.</returns>
275 <member name="M:System.Security.Principal.SecurityIdentifier.IsWellKnown(System.Security.Principal.WellKnownSidType)">
276 <summary>Returns a value that indicates whether the <see cref="T:System.Security.Principal.SecurityIdentifier"></see> object matches the specified well known security identifier (SID) type.</summary>
277 <param name="type">A value to compare with the <see cref="T:System.Security.Principal.SecurityIdentifier"></see> object.</param>
278 <returns>true if <paramref name="type">type</paramref> is the SID type for the <see cref="T:System.Security.Principal.SecurityIdentifier"></see> object; otherwise, false.</returns>
280 <member name="F:System.Security.Principal.SecurityIdentifier.MaxBinaryLength">
281 <summary>Returns the maximum size, in bytes, of the binary representation of the security identifier.</summary>
284 <member name="F:System.Security.Principal.SecurityIdentifier.MinBinaryLength">
285 <summary>Returns the minimum size, in bytes, of the binary representation of the security identifier.</summary>
288 <member name="M:System.Security.Principal.SecurityIdentifier.op_Equality(System.Security.Principal.SecurityIdentifier,System.Security.Principal.SecurityIdentifier)">
289 <summary>Compares two <see cref="T:System.Security.Principal.SecurityIdentifier"></see> objects to determine whether they are equal. They are considered equal if they have the same canonical representation as the one returned by the <see cref="P:System.Security.Principal.SecurityIdentifier.Value"></see> property or if they are both null.</summary>
290 <param name="left">The left operand to use for the equality comparison. This parameter can be null.</param>
291 <param name="right">The right operand to use for the equality comparison. This parameter can be null.</param>
292 <returns>true if <paramref name="left">left</paramref> and <paramref name="right">right</paramref> are equal; otherwise, false.</returns>
294 <member name="M:System.Security.Principal.SecurityIdentifier.op_Inequality(System.Security.Principal.SecurityIdentifier,System.Security.Principal.SecurityIdentifier)">
295 <summary>Compares two <see cref="T:System.Security.Principal.SecurityIdentifier"></see> objects to determine whether they are not equal. They are considered not equal if they have different canonical name representations than the one returned by the <see cref="P:System.Security.Principal.SecurityIdentifier.Value"></see> property or if one of the objects is null and the other is not.</summary>
296 <param name="left">The left operand to use for the inequality comparison. This parameter can be null.</param>
297 <param name="right">The right operand to use for the inequality comparison. This parameter can be null.</param>
298 <returns>true if <paramref name="left">left</paramref> and <paramref name="right">right</paramref> are not equal; otherwise, false.</returns>
300 <member name="M:System.Security.Principal.SecurityIdentifier.ToString">
301 <summary>Returns the security identifier (SID), in Security Descriptor Definition Language (SDDL) format, for the account represented by the <see cref="T:System.Security.Principal.SecurityIdentifier"></see> object. An example of the SDDL format is S-1-5-9.</summary>
302 <returns>The SID, in SDDL format, for the account represented by the <see cref="T:System.Security.Principal.SecurityIdentifier"></see> object.</returns>
304 <member name="M:System.Security.Principal.SecurityIdentifier.Translate(System.Type)">
305 <summary>Translates the account name represented by the <see cref="T:System.Security.Principal.SecurityIdentifier"></see> object into another <see cref="T:System.Security.Principal.IdentityReference"></see>-derived type.</summary>
306 <param name="targetType">The target type for the conversion from <see cref="T:System.Security.Principal.SecurityIdentifier"></see>. The target type must be a type that is considered valid by the <see cref="M:System.Security.Principal.SecurityIdentifier.IsValidTargetType(System.Type)"></see> method.</param>
307 <returns>The converted identity.</returns>
308 <exception cref="T:System.ArgumentNullException"><paramref name="targetType">targetType</paramref> is null.</exception>
309 <exception cref="T:System.ArgumentException"><paramref name="targetType">targetType</paramref> is not an <see cref="T:System.Security.Principal.IdentityReference"></see> type.</exception>
310 <exception cref="T:System.Security.Principal.IdentityNotMappedException">Some or all identity references could not be translated.</exception>
311 <exception cref="T:System.SystemException">A Win32 error code was returned.</exception>
313 <member name="P:System.Security.Principal.SecurityIdentifier.Value">
314 <summary>Returns an uppercase Security Descriptor Definition Language (SDDL) string for the security identifier (SID) represented by this <see cref="T:System.Security.Principal.SecurityIdentifier"></see> object.</summary>
315 <returns>An uppercase SDDL string for the SID represented by the <see cref="T:System.Security.Principal.SecurityIdentifier"></see> object.</returns>
317 <member name="T:System.Security.Principal.TokenAccessLevels">
318 <summary>Defines the privileges of the user account associated with the access token.</summary>
320 <member name="F:System.Security.Principal.TokenAccessLevels.AdjustDefault">
321 <summary>The user can change the default owner, primary group, or discretionary access control list (DACL) of the token.</summary>
324 <member name="F:System.Security.Principal.TokenAccessLevels.AdjustGroups">
325 <summary>The user can change the attributes of the groups in the token.</summary>
328 <member name="F:System.Security.Principal.TokenAccessLevels.AdjustPrivileges">
329 <summary>The user can enable or disable privileges in the token.</summary>
332 <member name="F:System.Security.Principal.TokenAccessLevels.AdjustSessionId">
333 <summary>The user can adjust the session identifier of the token.</summary>
336 <member name="F:System.Security.Principal.TokenAccessLevels.AllAccess">
337 <summary>The user has all possible access to the token.</summary>
340 <member name="F:System.Security.Principal.TokenAccessLevels.AssignPrimary">
341 <summary>The user can attach a primary token to a process.</summary>
344 <member name="F:System.Security.Principal.TokenAccessLevels.Duplicate">
345 <summary>The user can duplicate the token.</summary>
348 <member name="F:System.Security.Principal.TokenAccessLevels.Impersonate">
349 <summary>The user can impersonate a client.</summary>
352 <member name="F:System.Security.Principal.TokenAccessLevels.MaximumAllowed">
353 <summary>The maximum value that can be assigned for the <see cref="T:System.Security.Principal.TokenAccessLevels"></see> enumeration.</summary>
356 <member name="F:System.Security.Principal.TokenAccessLevels.Query">
357 <summary>The user can query the token.</summary>
360 <member name="F:System.Security.Principal.TokenAccessLevels.QuerySource">
361 <summary>The user can query the source of the token.</summary>
364 <member name="F:System.Security.Principal.TokenAccessLevels.Read">
365 <summary>The user has standard read rights and the <see cref="F:System.Security.Principal.TokenAccessLevels.Query"></see> privilege for the token.</summary>
368 <member name="F:System.Security.Principal.TokenAccessLevels.Write">
369 <summary>The user has standard write rights and the <see cref="F:System.Security.Principal.TokenAccessLevels.AdjustPrivileges"></see>, <see cref="F:System.Security.Principal.TokenAccessLevels.AdjustGroups"></see> and <see cref="F:System.Security.Principal.TokenAccessLevels.AdjustDefault"></see> privileges for the token.</summary>
372 <member name="T:System.Security.Principal.WellKnownSidType">
373 <summary>Defines a set of commonly used security identifiers (SIDs).</summary>
375 <member name="F:System.Security.Principal.WellKnownSidType.AccountAdministratorSid">
376 <summary>Indicates a SID that matches the account administrators group.</summary>
379 <member name="F:System.Security.Principal.WellKnownSidType.AccountCertAdminsSid">
380 <summary>Indicates a SID that matches the certificate administrators group.</summary>
383 <member name="F:System.Security.Principal.WellKnownSidType.AccountComputersSid">
384 <summary>Indicates a SID that matches the account computer group.</summary>
387 <member name="F:System.Security.Principal.WellKnownSidType.AccountControllersSid">
388 <summary>Indicates a SID that matches the account controller group.</summary>
391 <member name="F:System.Security.Principal.WellKnownSidType.AccountDomainAdminsSid">
392 <summary>Indicates a SID that matches the account domain administrator group.</summary>
395 <member name="F:System.Security.Principal.WellKnownSidType.AccountDomainGuestsSid">
396 <summary>Indicates a SID that matches the account domain guests group.</summary>
399 <member name="F:System.Security.Principal.WellKnownSidType.AccountDomainUsersSid">
400 <summary>Indicates a SID that matches the account domain users group.</summary>
403 <member name="F:System.Security.Principal.WellKnownSidType.AccountEnterpriseAdminsSid">
404 <summary>Indicates a SID that matches the enterprise administrators group.</summary>
407 <member name="F:System.Security.Principal.WellKnownSidType.AccountGuestSid">
408 <summary>Indicates a SID that matches the account guest group.</summary>
411 <member name="F:System.Security.Principal.WellKnownSidType.AccountKrbtgtSid">
412 <summary>Indicates a SID that matches the account Kerberos target group.</summary>
415 <member name="F:System.Security.Principal.WellKnownSidType.AccountPolicyAdminsSid">
416 <summary>Indicates a SID that matches the policy administrators group.</summary>
419 <member name="F:System.Security.Principal.WellKnownSidType.AccountRasAndIasServersSid">
420 <summary>Indicates a SID that matches the RAS and IAS server account.</summary>
423 <member name="F:System.Security.Principal.WellKnownSidType.AccountSchemaAdminsSid">
424 <summary>Indicates a SID that matches the schema administrators group.</summary>
427 <member name="F:System.Security.Principal.WellKnownSidType.AnonymousSid">
428 <summary>Indicates a SID for the anonymous account.</summary>
431 <member name="F:System.Security.Principal.WellKnownSidType.AuthenticatedUserSid">
432 <summary>Indicates a SID for an authenticated user.</summary>
435 <member name="F:System.Security.Principal.WellKnownSidType.BatchSid">
436 <summary>Indicates a SID for a batch process. This SID is added to the process of a token when it logs on as a batch job.</summary>
439 <member name="F:System.Security.Principal.WellKnownSidType.BuiltinAccountOperatorsSid">
440 <summary>Indicates a SID that matches the account operators account.</summary>
443 <member name="F:System.Security.Principal.WellKnownSidType.BuiltinAdministratorsSid">
444 <summary>Indicates a SID that matches the administrator account.</summary>
447 <member name="F:System.Security.Principal.WellKnownSidType.BuiltinAuthorizationAccessSid">
448 <summary>Indicates a SID that matches the Windows Authorization Access group.</summary>
451 <member name="F:System.Security.Principal.WellKnownSidType.BuiltinBackupOperatorsSid">
452 <summary>Indicates a SID that matches the backup operators group.</summary>
455 <member name="F:System.Security.Principal.WellKnownSidType.BuiltinDomainSid">
456 <summary>Indicates a SID that matches the domain account.</summary>
459 <member name="F:System.Security.Principal.WellKnownSidType.BuiltinGuestsSid">
460 <summary>Indicates a SID that matches the guest account.</summary>
463 <member name="F:System.Security.Principal.WellKnownSidType.BuiltinIncomingForestTrustBuildersSid">
464 <summary>Indicates a SID that allows a user to create incoming forest trusts. It is added to the token of users who are a member of the Incoming Forest Trust Builders built-in group in the root domain of the forest.</summary>
467 <member name="F:System.Security.Principal.WellKnownSidType.BuiltinNetworkConfigurationOperatorsSid">
468 <summary>Indicates a SID that matches the network operators group.</summary>
471 <member name="F:System.Security.Principal.WellKnownSidType.BuiltinPerformanceLoggingUsersSid">
472 <summary>Indicates a SID that matches the group of users that have remote access to monitor the computer.</summary>
475 <member name="F:System.Security.Principal.WellKnownSidType.BuiltinPerformanceMonitoringUsersSid">
476 <summary>Indicates a SID that matches the group of users that have remote access to schedule logging of performance counters on this computer.</summary>
479 <member name="F:System.Security.Principal.WellKnownSidType.BuiltinPowerUsersSid">
480 <summary>Indicates a SID that matches the power users group.</summary>
483 <member name="F:System.Security.Principal.WellKnownSidType.BuiltinPreWindows2000CompatibleAccessSid">
484 <summary>Indicates a SID that matches pre-Windows 2000 compatible accounts.</summary>
487 <member name="F:System.Security.Principal.WellKnownSidType.BuiltinPrintOperatorsSid">
488 <summary>Indicates a SID that matches the print operators group.</summary>
491 <member name="F:System.Security.Principal.WellKnownSidType.BuiltinRemoteDesktopUsersSid">
492 <summary>Indicates a SID that matches remote desktop users.</summary>
495 <member name="F:System.Security.Principal.WellKnownSidType.BuiltinReplicatorSid">
496 <summary>Indicates a SID that matches the replicator account.</summary>
499 <member name="F:System.Security.Principal.WellKnownSidType.BuiltinSystemOperatorsSid">
500 <summary>Indicates a SID that matches the system operators group.</summary>
503 <member name="F:System.Security.Principal.WellKnownSidType.BuiltinUsersSid">
504 <summary>Indicates a SID that matches built-in user accounts.</summary>
507 <member name="F:System.Security.Principal.WellKnownSidType.CreatorGroupServerSid">
508 <summary>Indicates a creator group server SID.</summary>
511 <member name="F:System.Security.Principal.WellKnownSidType.CreatorGroupSid">
512 <summary>Indicates a SID that matches the creator group of an object.</summary>
515 <member name="F:System.Security.Principal.WellKnownSidType.CreatorOwnerServerSid">
516 <summary>Indicates a creator owner server SID.</summary>
519 <member name="F:System.Security.Principal.WellKnownSidType.CreatorOwnerSid">
520 <summary>Indicates a SID that matches the owner or creator of an object.</summary>
523 <member name="F:System.Security.Principal.WellKnownSidType.DialupSid">
524 <summary>Indicates a SID for a dial-up account.</summary>
527 <member name="F:System.Security.Principal.WellKnownSidType.DigestAuthenticationSid">
528 <summary>Indicates a SID present when the Microsoft Digest authentication package authenticated the client.</summary>
531 <member name="F:System.Security.Principal.WellKnownSidType.EnterpriseControllersSid">
532 <summary>Indicates a SID for an enterprise controller.</summary>
535 <member name="F:System.Security.Principal.WellKnownSidType.InteractiveSid">
536 <summary>Indicates a SID for an interactive account. This SID is added to the process of a token when it logs on interactively.</summary>
539 <member name="F:System.Security.Principal.WellKnownSidType.LocalServiceSid">
540 <summary>Indicates a SID that matches a local service.</summary>
543 <member name="F:System.Security.Principal.WellKnownSidType.LocalSid">
544 <summary>Indicates a local SID.</summary>
547 <member name="F:System.Security.Principal.WellKnownSidType.LocalSystemSid">
548 <summary>Indicates a SID that matches the local system.</summary>
551 <member name="F:System.Security.Principal.WellKnownSidType.LogonIdsSid">
552 <summary>Indicates a SID that matches logon IDs.</summary>
555 <member name="F:System.Security.Principal.WellKnownSidType.MaxDefined">
556 <summary>Indicates the maximum defined SID in the <see cref="T:System.Security.Principal.WellKnownSidType"></see> enumeration.</summary>
559 <member name="F:System.Security.Principal.WellKnownSidType.NetworkServiceSid">
560 <summary>Indicates a SID that matches a network service.</summary>
563 <member name="F:System.Security.Principal.WellKnownSidType.NetworkSid">
564 <summary>Indicates a SID for a network account. This SID is added to the process of a token when it logs on across a network.</summary>
567 <member name="F:System.Security.Principal.WellKnownSidType.NTAuthoritySid">
568 <summary>Indicates a SID for the Windows NT authority.</summary>
571 <member name="F:System.Security.Principal.WellKnownSidType.NtlmAuthenticationSid">
572 <summary>Indicates a SID present when the Microsoft NTLM authentication package authenticated the client.</summary>
575 <member name="F:System.Security.Principal.WellKnownSidType.NullSid">
576 <summary>Indicates a null SID.</summary>
579 <member name="F:System.Security.Principal.WellKnownSidType.OtherOrganizationSid">
580 <summary>Indicates a SID present when the user authenticated across a forest with the selective authentication option enabled. If this SID is present, then <see cref="F:System.Security.Principal.WellKnownSidType.ThisOrganizationSid"></see> cannot be present.</summary>
583 <member name="F:System.Security.Principal.WellKnownSidType.ProxySid">
584 <summary>Indicates a proxy SID.</summary>
587 <member name="F:System.Security.Principal.WellKnownSidType.RemoteLogonIdSid">
588 <summary>Indicates a SID that matches remote logons.</summary>
591 <member name="F:System.Security.Principal.WellKnownSidType.RestrictedCodeSid">
592 <summary>Indicates a SID for restricted code.</summary>
595 <member name="F:System.Security.Principal.WellKnownSidType.SChannelAuthenticationSid">
596 <summary>Indicates a SID present when the Secure Channel (SSL/TLS) authentication package authenticated the client.</summary>
599 <member name="F:System.Security.Principal.WellKnownSidType.SelfSid">
600 <summary>Indicates a SID for self.</summary>
603 <member name="F:System.Security.Principal.WellKnownSidType.ServiceSid">
604 <summary>Indicates a SID for a service. This SID is added to the process of a token when it logs on as a service.</summary>
607 <member name="F:System.Security.Principal.WellKnownSidType.TerminalServerSid">
608 <summary>Indicates a SID that matches a terminal server account.</summary>
611 <member name="F:System.Security.Principal.WellKnownSidType.ThisOrganizationSid">
612 <summary>Indicates a SID present when the user authenticated from within the forest or across a trust that does not have the selective authentication option enabled. If this SID is present, then <see cref="F:System.Security.Principal.WellKnownSidType.OtherOrganizationSid"></see> cannot be present.</summary>
615 <member name="F:System.Security.Principal.WellKnownSidType.WinAccountReadonlyControllersSid">
618 <member name="F:System.Security.Principal.WellKnownSidType.WinApplicationPackageAuthoritySid">
621 <member name="F:System.Security.Principal.WellKnownSidType.WinBuiltinAnyPackageSid">
624 <member name="F:System.Security.Principal.WellKnownSidType.WinBuiltinCertSvcDComAccessGroup">
627 <member name="F:System.Security.Principal.WellKnownSidType.WinBuiltinCryptoOperatorsSid">
630 <member name="F:System.Security.Principal.WellKnownSidType.WinBuiltinDCOMUsersSid">
633 <member name="F:System.Security.Principal.WellKnownSidType.WinBuiltinEventLogReadersGroup">
636 <member name="F:System.Security.Principal.WellKnownSidType.WinBuiltinIUsersSid">
639 <member name="F:System.Security.Principal.WellKnownSidType.WinBuiltinTerminalServerLicenseServersSid">
640 <summary>Indicates a SID is present in a server that can issue Terminal Server licenses.</summary>
643 <member name="F:System.Security.Principal.WellKnownSidType.WinCacheablePrincipalsGroupSid">
646 <member name="F:System.Security.Principal.WellKnownSidType.WinCapabilityDocumentsLibrarySid">
649 <member name="F:System.Security.Principal.WellKnownSidType.WinCapabilityEnterpriseAuthenticationSid">
652 <member name="F:System.Security.Principal.WellKnownSidType.WinCapabilityInternetClientServerSid">
655 <member name="F:System.Security.Principal.WellKnownSidType.WinCapabilityInternetClientSid">
658 <member name="F:System.Security.Principal.WellKnownSidType.WinCapabilityMusicLibrarySid">
661 <member name="F:System.Security.Principal.WellKnownSidType.WinCapabilityPicturesLibrarySid">
664 <member name="F:System.Security.Principal.WellKnownSidType.WinCapabilityPrivateNetworkClientServerSid">
667 <member name="F:System.Security.Principal.WellKnownSidType.WinCapabilityRemovableStorageSid">
670 <member name="F:System.Security.Principal.WellKnownSidType.WinCapabilitySharedUserCertificatesSid">
673 <member name="F:System.Security.Principal.WellKnownSidType.WinCapabilityVideosLibrarySid">
676 <member name="F:System.Security.Principal.WellKnownSidType.WinConsoleLogonSid">
679 <member name="F:System.Security.Principal.WellKnownSidType.WinCreatorOwnerRightsSid">
682 <member name="F:System.Security.Principal.WellKnownSidType.WinEnterpriseReadonlyControllersSid">
685 <member name="F:System.Security.Principal.WellKnownSidType.WinHighLabelSid">
688 <member name="F:System.Security.Principal.WellKnownSidType.WinIUserSid">
691 <member name="F:System.Security.Principal.WellKnownSidType.WinLocalLogonSid">
694 <member name="F:System.Security.Principal.WellKnownSidType.WinLowLabelSid">
697 <member name="F:System.Security.Principal.WellKnownSidType.WinMediumLabelSid">
700 <member name="F:System.Security.Principal.WellKnownSidType.WinMediumPlusLabelSid">
703 <member name="F:System.Security.Principal.WellKnownSidType.WinNewEnterpriseReadonlyControllersSid">
706 <member name="F:System.Security.Principal.WellKnownSidType.WinNonCacheablePrincipalsGroupSid">
709 <member name="F:System.Security.Principal.WellKnownSidType.WinSystemLabelSid">
712 <member name="F:System.Security.Principal.WellKnownSidType.WinThisOrganizationCertificateSid">
715 <member name="F:System.Security.Principal.WellKnownSidType.WinUntrustedLabelSid">
718 <member name="F:System.Security.Principal.WellKnownSidType.WinWriteRestrictedCodeSid">
721 <member name="F:System.Security.Principal.WellKnownSidType.WorldSid">
722 <summary>Indicates a SID that matches everyone.</summary>
725 <member name="T:System.Security.Principal.WindowsBuiltInRole">
726 <summary>Specifies common roles to be used with <see cref="M:System.Security.Principal.WindowsPrincipal.IsInRole(System.String)"></see>.</summary>
728 <member name="F:System.Security.Principal.WindowsBuiltInRole.AccountOperator">
729 <summary>Account operators manage the user accounts on a computer or domain.</summary>
732 <member name="F:System.Security.Principal.WindowsBuiltInRole.Administrator">
733 <summary>Administrators have complete and unrestricted access to the computer or domain.</summary>
736 <member name="F:System.Security.Principal.WindowsBuiltInRole.BackupOperator">
737 <summary>Backup operators can override security restrictions for the sole purpose of backing up or restoring files.</summary>
740 <member name="F:System.Security.Principal.WindowsBuiltInRole.Guest">
741 <summary>Guests are more restricted than users.</summary>
744 <member name="F:System.Security.Principal.WindowsBuiltInRole.PowerUser">
745 <summary>Power users possess most administrative permissions with some restrictions. Thus, power users can run legacy applications, in addition to certified applications.</summary>
748 <member name="F:System.Security.Principal.WindowsBuiltInRole.PrintOperator">
749 <summary>Print operators can take control of a printer.</summary>
752 <member name="F:System.Security.Principal.WindowsBuiltInRole.Replicator">
753 <summary>Replicators support file replication in a domain.</summary>
756 <member name="F:System.Security.Principal.WindowsBuiltInRole.SystemOperator">
757 <summary>System operators manage a particular computer.</summary>
760 <member name="F:System.Security.Principal.WindowsBuiltInRole.User">
761 <summary>Users are prevented from making accidental or intentional system-wide changes. Thus, users can run certified applications, but not most legacy applications.</summary>
764 <member name="T:System.Security.Principal.WindowsIdentity">
765 <summary>Represents a Windows user.</summary>
767 <member name="M:System.Security.Principal.WindowsIdentity.#ctor(System.IntPtr)">
768 <summary>Initializes a new instance of the <see cref="T:System.Security.Principal.WindowsIdentity"></see> class for the user represented by the specified Windows account token.</summary>
769 <param name="userToken">The account token for the user on whose behalf the code is running.</param>
770 <exception cref="T:System.ArgumentException"><paramref name="userToken">userToken</paramref> is 0. -or- <paramref name="userToken">userToken</paramref> is duplicated and invalid for impersonation.</exception>
771 <exception cref="T:System.Security.SecurityException">The caller does not have the correct permissions. -or- A Win32 error occurred.</exception>
773 <member name="M:System.Security.Principal.WindowsIdentity.#ctor(System.String)">
774 <summary>Initializes a new instance of the <see cref="T:System.Security.Principal.WindowsIdentity"></see> class for the user represented by the specified User Principal Name (UPN).</summary>
775 <param name="sUserPrincipalName">The UPN for the user on whose behalf the code is running.</param>
776 <exception cref="T:System.UnauthorizedAccessException">Windows returned the Windows NT status code STATUS_ACCESS_DENIED.</exception>
777 <exception cref="T:System.OutOfMemoryException">There is insufficient memory available.</exception>
778 <exception cref="T:System.Security.SecurityException">The caller does not have the correct permissions. -or- The computer is not attached to a Windows 2003 or later domain. -or- The computer is not running Windows 2003 or later. -or- The user is not a member of the domain the computer is attached to.</exception>
780 <member name="M:System.Security.Principal.WindowsIdentity.#ctor(System.IntPtr,System.String)">
781 <summary>Initializes a new instance of the <see cref="T:System.Security.Principal.WindowsIdentity"></see> class for the user represented by the specified Windows account token and the specified authentication type.</summary>
782 <param name="userToken">The account token for the user on whose behalf the code is running.</param>
783 <param name="type">(Informational use only.) The type of authentication used to identify the user.</param>
784 <exception cref="T:System.ArgumentException"><paramref name="userToken">userToken</paramref> is 0. -or- <paramref name="userToken">userToken</paramref> is duplicated and invalid for impersonation.</exception>
785 <exception cref="T:System.Security.SecurityException">The caller does not have the correct permissions. -or- A Win32 error occurred.</exception>
787 <member name="M:System.Security.Principal.WindowsIdentity.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
788 <summary>Initializes a new instance of the <see cref="T:System.Security.Principal.WindowsIdentity"></see> class for the user represented by information in a <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> stream.</summary>
789 <param name="info">The object containing the account information for the user.</param>
790 <param name="context">An object that indicates the stream characteristics.</param>
791 <exception cref="T:System.NotSupportedException">A <see cref="T:System.Security.Principal.WindowsIdentity"></see> cannot be serialized across processes.</exception>
792 <exception cref="T:System.Security.SecurityException">The caller does not have the correct permissions. -or- A Win32 error occurred.</exception>
794 <member name="P:System.Security.Principal.WindowsIdentity.AccessToken">
795 <summary>Gets this <see cref="T:Microsoft.Win32.SafeHandles.SafeAccessTokenHandle"></see> for this <see cref="T:System.Security.Principal.WindowsIdentity"></see> instance.</summary>
796 <returns>Returns a <see cref="T:Microsoft.Win32.SafeHandles.SafeAccessTokenHandle"></see>.</returns>
798 <member name="P:System.Security.Principal.WindowsIdentity.AuthenticationType">
799 <summary>Gets the type of authentication used to identify the user.</summary>
800 <returns>The type of authentication used to identify the user.</returns>
801 <exception cref="T:System.UnauthorizedAccessException">Windows returned the Windows NT status code STATUS_ACCESS_DENIED.</exception>
802 <exception cref="T:System.OutOfMemoryException">There is insufficient memory available.</exception>
803 <exception cref="T:System.Security.SecurityException">The caller does not have the correct permissions. -or- The computer is not attached to a Windows 2003 or later domain. -or- The computer is not running Windows 2003 or later. -or- The user is not a member of the domain the computer is attached to.</exception>
805 <member name="P:System.Security.Principal.WindowsIdentity.Claims">
806 <summary>Gets all claims for the user represented by this Windows identity.</summary>
807 <returns>A collection of claims for this <see cref="T:System.Security.Principal.WindowsIdentity"></see> object.</returns>
809 <member name="M:System.Security.Principal.WindowsIdentity.Clone">
810 <summary>Creates a new object that is a copy of the current instance.</summary>
811 <returns>A copy of the current instance.</returns>
813 <member name="F:System.Security.Principal.WindowsIdentity.DefaultIssuer">
814 <summary>Identifies the name of the default <see cref="T:System.Security.Claims.ClaimsIdentity"></see> issuer.</summary>
817 <member name="M:System.Security.Principal.WindowsIdentity.Dispose">
818 <summary>Releases all resources used by the <see cref="T:System.Security.Principal.WindowsIdentity"></see>.</summary>
820 <member name="M:System.Security.Principal.WindowsIdentity.Dispose(System.Boolean)">
821 <summary>Releases the unmanaged resources used by the <see cref="T:System.Security.Principal.WindowsIdentity"></see> and optionally releases the managed resources.</summary>
822 <param name="disposing">true to release both managed and unmanaged resources; false to release only unmanaged resources.</param>
824 <member name="M:System.Security.Principal.WindowsIdentity.GetAnonymous">
825 <summary>Returns a <see cref="T:System.Security.Principal.WindowsIdentity"></see> object that you can use as a sentinel value in your code to represent an anonymous user. The property value does not represent the built-in anonymous identity used by the Windows operating system.</summary>
826 <returns>An object that represents an anonymous user.</returns>
828 <member name="M:System.Security.Principal.WindowsIdentity.GetCurrent(System.Security.Principal.TokenAccessLevels)">
829 <summary>Returns a <see cref="T:System.Security.Principal.WindowsIdentity"></see> object that represents the current Windows user, using the specified desired token access level.</summary>
830 <param name="desiredAccess">A bitwise combination of the enumeration values.</param>
831 <returns>An object that represents the current user.</returns>
833 <member name="M:System.Security.Principal.WindowsIdentity.GetCurrent(System.Boolean)">
834 <summary>Returns a <see cref="T:System.Security.Principal.WindowsIdentity"></see> object that represents the Windows identity for either the thread or the process, depending on the value of the <paramref name="ifImpersonating">ifImpersonating</paramref> parameter.</summary>
835 <param name="ifImpersonating">true to return the <see cref="T:System.Security.Principal.WindowsIdentity"></see> only if the thread is currently impersonating; false to return the <see cref="T:System.Security.Principal.WindowsIdentity"></see> of the thread if it is impersonating or the <see cref="T:System.Security.Principal.WindowsIdentity"></see> of the process if the thread is not currently impersonating.</param>
836 <returns>An object that represents a Windows user.</returns>
838 <member name="M:System.Security.Principal.WindowsIdentity.GetCurrent">
839 <summary>Returns a <see cref="T:System.Security.Principal.WindowsIdentity"></see> object that represents the current Windows user.</summary>
840 <returns>An object that represents the current user.</returns>
841 <exception cref="T:System.Security.SecurityException">The caller does not have the correct permissions.</exception>
843 <member name="P:System.Security.Principal.WindowsIdentity.Groups">
844 <summary>Gets the groups the current Windows user belongs to.</summary>
845 <returns>An object representing the groups the current Windows user belongs to.</returns>
847 <member name="P:System.Security.Principal.WindowsIdentity.ImpersonationLevel">
848 <summary>Gets the impersonation level for the user.</summary>
849 <returns>One of the enumeration values that specifies the impersonation level.</returns>
851 <member name="P:System.Security.Principal.WindowsIdentity.IsAnonymous">
852 <summary>Gets a value that indicates whether the user account is identified as an anonymous account by the system.</summary>
853 <returns>true if the user account is an anonymous account; otherwise, false.</returns>
855 <member name="P:System.Security.Principal.WindowsIdentity.IsAuthenticated">
856 <summary>Gets a value indicating whether the user has been authenticated by Windows.</summary>
857 <returns>true if the user was authenticated; otherwise, false.</returns>
859 <member name="P:System.Security.Principal.WindowsIdentity.IsGuest">
860 <summary>Gets a value indicating whether the user account is identified as a <see cref="F:System.Security.Principal.WindowsAccountType.Guest"></see> account by the system.</summary>
861 <returns>true if the user account is a <see cref="F:System.Security.Principal.WindowsAccountType.Guest"></see> account; otherwise, false.</returns>
863 <member name="P:System.Security.Principal.WindowsIdentity.IsSystem">
864 <summary>Gets a value indicating whether the user account is identified as a <see cref="F:System.Security.Principal.WindowsAccountType.System"></see> account by the system.</summary>
865 <returns>true if the user account is a <see cref="F:System.Security.Principal.WindowsAccountType.System"></see> account; otherwise, false.</returns>
867 <member name="P:System.Security.Principal.WindowsIdentity.Name">
868 <summary>Gets the user's Windows logon name.</summary>
869 <returns>The Windows logon name of the user on whose behalf the code is being run.</returns>
871 <member name="P:System.Security.Principal.WindowsIdentity.Owner">
872 <summary>Gets the security identifier (SID) for the token owner.</summary>
873 <returns>An object for the token owner.</returns>
875 <member name="M:System.Security.Principal.WindowsIdentity.RunImpersonated(Microsoft.Win32.SafeHandles.SafeAccessTokenHandle,System.Action)">
876 <summary>Runs the specified action as the impersonated Windows identity. Instead of using an impersonated method call and running your function in <see cref="T:System.Security.Principal.WindowsImpersonationContext"></see>, you can use <see cref="M:System.Security.Principal.WindowsIdentity.RunImpersonated(Microsoft.Win32.SafeHandles.SafeAccessTokenHandle,System.Action)"></see> and provide your function directly as a parameter.</summary>
877 <param name="safeAccessTokenHandle">The SafeAccessTokenHandle of the impersonated Windows identity.</param>
878 <param name="action">The System.Action to run.</param>
880 <member name="M:System.Security.Principal.WindowsIdentity.RunImpersonated``1(Microsoft.Win32.SafeHandles.SafeAccessTokenHandle,System.Func{``0})">
881 <summary>Runs the specified function as the impersonated Windows identity. Instead of using an impersonated method call and running your function in <see cref="T:System.Security.Principal.WindowsImpersonationContext"></see>, you can use <see cref="M:System.Security.Principal.WindowsIdentity.RunImpersonated(Microsoft.Win32.SafeHandles.SafeAccessTokenHandle,System.Action)"></see> and provide your function directly as a parameter.</summary>
882 <param name="safeAccessTokenHandle">The SafeAccessTokenHandle of the impersonated Windows identity.</param>
883 <param name="func">The System.Func to run.</param>
884 <typeparam name="T">The type of object used by and returned by the function.</typeparam>
885 <returns>Returns the result of the function.</returns>
887 <member name="P:System.Security.Principal.WindowsIdentity.Token">
888 <summary>Gets the Windows account token for the user.</summary>
889 <returns>The handle of the access token associated with the current execution thread.</returns>
891 <member name="P:System.Security.Principal.WindowsIdentity.User">
892 <summary>Gets the security identifier (SID) for the user.</summary>
893 <returns>An object for the user.</returns>
895 <member name="M:System.Security.Principal.WindowsIdentity.System#Runtime#Serialization#IDeserializationCallback#OnDeserialization(System.Object)">
896 <summary>Implements the <see cref="T:System.Runtime.Serialization.ISerializable"></see> interface and is called back by the deserialization event when deserialization is complete.</summary>
897 <param name="sender">The source of the deserialization event.</param>
899 <member name="M:System.Security.Principal.WindowsIdentity.System#Runtime#Serialization#ISerializable#GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
900 <summary>Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> object with the logical context information needed to recreate an instance of this execution context.</summary>
901 <param name="info">An object containing the information required to serialize the <see cref="T:System.Collections.Hashtable"></see>.</param>
902 <param name="context">An object containing the source and destination of the serialized stream associated with the <see cref="T:System.Collections.Hashtable"></see>.</param>
904 <member name="T:System.Security.Principal.WindowsPrincipal">
905 <summary>Enables code to check the Windows group membership of a Windows user.</summary>
907 <member name="M:System.Security.Principal.WindowsPrincipal.#ctor(System.Security.Principal.WindowsIdentity)">
908 <summary>Initializes a new instance of the <see cref="T:System.Security.Principal.WindowsPrincipal"></see> class by using the specified <see cref="T:System.Security.Principal.WindowsIdentity"></see> object.</summary>
909 <param name="ntIdentity">The object from which to construct the new instance of <see cref="T:System.Security.Principal.WindowsPrincipal"></see>.</param>
910 <exception cref="T:System.ArgumentNullException"><paramref name="ntIdentity">ntIdentity</paramref> is null.</exception>
912 <member name="P:System.Security.Principal.WindowsPrincipal.Identity">
913 <summary>Gets the identity of the current principal.</summary>
914 <returns>The <see cref="T:System.Security.Principal.WindowsIdentity"></see> object of the current principal.</returns>
916 <member name="M:System.Security.Principal.WindowsPrincipal.IsInRole(System.Int32)">
917 <summary>Determines whether the current principal belongs to the Windows user group with the specified relative identifier (RID).</summary>
918 <param name="rid">The RID of the Windows user group in which to check for the principal’s membership status.</param>
919 <returns>true if the current principal is a member of the specified Windows user group, that is, in a particular role; otherwise, false.</returns>
921 <member name="M:System.Security.Principal.WindowsPrincipal.IsInRole(System.Security.Principal.SecurityIdentifier)">
922 <summary>Determines whether the current principal belongs to the Windows user group with the specified security identifier (SID).</summary>
923 <param name="sid">A <see cref="T:System.Security.Principal.SecurityIdentifier"></see> that uniquely identifies a Windows user group.</param>
924 <returns>true if the current principal is a member of the specified Windows user group; otherwise, false.</returns>
925 <exception cref="T:System.ArgumentNullException"><paramref name="sid">sid</paramref> is null.</exception>
926 <exception cref="T:System.Security.SecurityException">Windows returned a Win32 error.</exception>
928 <member name="M:System.Security.Principal.WindowsPrincipal.IsInRole(System.Security.Principal.WindowsBuiltInRole)">
929 <summary>Determines whether the current principal belongs to the Windows user group with the specified <see cref="T:System.Security.Principal.WindowsBuiltInRole"></see>.</summary>
930 <param name="role">One of the <see cref="T:System.Security.Principal.WindowsBuiltInRole"></see> values.</param>
931 <returns>true if the current principal is a member of the specified Windows user group; otherwise, false.</returns>
932 <exception cref="T:System.ArgumentException"><paramref name="role">role</paramref> is not a valid <see cref="T:System.Security.Principal.WindowsBuiltInRole"></see> value.</exception>
934 <member name="M:System.Security.Principal.WindowsPrincipal.IsInRole(System.String)">
935 <summary>Determines whether the current principal belongs to the Windows user group with the specified name.</summary>
936 <param name="role">The name of the Windows user group for which to check membership.</param>
937 <returns>true if the current principal is a member of the specified Windows user group; otherwise, false.</returns>
939 <member name="T:Microsoft.Win32.SafeHandles.SafeAccessTokenHandle">
940 <summary>Provides a safe handle to a Windows thread or process access token. For more information see <see cref="https://msdn.microsoft.com/library/windows/desktop/aa374909.aspx">Access Tokens</see></summary>
942 <member name="M:Microsoft.Win32.SafeHandles.SafeAccessTokenHandle.#ctor(System.IntPtr)">
943 <summary>Initializes a new instance of the <see cref="T:Microsoft.Win32.SafeHandles.SafeAccessTokenHandle"></see> class.</summary>
944 <param name="handle">An <see cref="T:System.IntPtr"></see> object that represents the pre-existing handle to use. Using <see cref="F:System.IntPtr.Zero"></see> returns an invalid handle.</param>
946 <member name="P:Microsoft.Win32.SafeHandles.SafeAccessTokenHandle.InvalidHandle">
947 <summary>Returns an invalid handle by instantiating a <see cref="T:Microsoft.Win32.SafeHandles.SafeAccessTokenHandle"></see> object with <see cref="F:System.IntPtr.Zero"></see>.</summary>
948 <returns>Returns a <see cref="T:Microsoft.Win32.SafeHandles.SafeAccessTokenHandle"></see> object.</returns>
950 <member name="P:Microsoft.Win32.SafeHandles.SafeAccessTokenHandle.IsInvalid">
951 <summary>Gets a value that indicates whether the handle is invalid.</summary>
952 <returns>true if the handle is not valid; otherwise, false.</returns>