1 <?xml version="1.0" encoding="utf-8"?>
4 <name>System.Security.Principal.Windows</name>
7 <member name="T:Microsoft.Win32.SafeHandles.SafeAccessTokenHandle">
8 <summary>[SECURITY CRITICAL] Provides a safe handle to a Windows thread or process access token. For more information see Access Tokens</summary>
10 <member name="M:Microsoft.Win32.SafeHandles.SafeAccessTokenHandle.#ctor(System.IntPtr)">
11 <summary>[SECURITY CRITICAL] Initializes a new instance of the <see cref="T:Microsoft.Win32.SafeHandles.SafeAccessTokenHandle" /> class.</summary>
12 <param name="handle">An <see cref="T:System.IntPtr" /> object that represents the pre-existing handle to use. Using <see cref="F:System.IntPtr.Zero" /> returns an invalid handle.</param>
14 <member name="P:Microsoft.Win32.SafeHandles.SafeAccessTokenHandle.InvalidHandle">
15 <summary>[SECURITY CRITICAL] Returns an invalid handle by instantiating a <see cref="T:Microsoft.Win32.SafeHandles.SafeAccessTokenHandle" /> object with <see cref="F:System.IntPtr.Zero" />.</summary>
16 <returns>Returns a<see cref="T:Microsoft.Win32.SafeHandles.SafeAccessTokenHandle" /> object.</returns>
18 <member name="P:Microsoft.Win32.SafeHandles.SafeAccessTokenHandle.IsInvalid">
19 <summary>[SECURITY CRITICAL] Gets a value that indicates whether the handle is invalid.</summary>
20 <returns>true if the handle is not valid; otherwise, false.</returns>
22 <member name="T:System.Security.Principal.IdentityNotMappedException">
23 <summary>Represents an exception for a principal whose identity could not be mapped to a known identity.</summary>
25 <member name="M:System.Security.Principal.IdentityNotMappedException.#ctor">
26 <summary>Initializes a new instance of the <see cref="T:System.Security.Principal.IdentityNotMappedException" /> class.</summary>
28 <member name="M:System.Security.Principal.IdentityNotMappedException.#ctor(System.String)">
29 <summary>Initializes a new instance of the <see cref="T:System.Security.Principal.IdentityNotMappedException" /> class by using the specified error message.</summary>
30 <param name="message">The error message that explains the reason for the exception.</param>
32 <member name="M:System.Security.Principal.IdentityNotMappedException.#ctor(System.String,System.Exception)">
33 <summary>Initializes a new instance of the <see cref="T:System.Security.Principal.IdentityNotMappedException" /> class by using the specified error message and inner exception.</summary>
34 <param name="message">The error message that explains the reason for the exception.</param>
35 <param name="inner">The exception that is the cause of the current exception. If <paramref name="inner" /> is not null, the current exception is raised in a catch block that handles the inner exception.</param>
37 <member name="P:System.Security.Principal.IdentityNotMappedException.UnmappedIdentities">
38 <summary>Represents the collection of unmapped identities for an <see cref="T:System.Security.Principal.IdentityNotMappedException" /> exception.</summary>
39 <returns>The collection of unmapped identities.</returns>
41 <member name="T:System.Security.Principal.IdentityReference">
42 <summary>Represents an identity and is the base class for the <see cref="T:System.Security.Principal.NTAccount" /> and <see cref="T:System.Security.Principal.SecurityIdentifier" /> classes. This class does not provide a public constructor, and therefore cannot be inherited.</summary>
44 <member name="M:System.Security.Principal.IdentityReference.Equals(System.Object)">
45 <summary>Returns a value that indicates whether the specified object equals this instance of the <see cref="T:System.Security.Principal.IdentityReference" /> class.</summary>
46 <returns>true if <paramref name="o" /> is an object with the same underlying type and value as this <see cref="T:System.Security.Principal.IdentityReference" /> instance; otherwise, false.</returns>
47 <param name="o">An object to compare with this <see cref="T:System.Security.Principal.IdentityReference" /> instance, or a null reference.</param>
49 <member name="M:System.Security.Principal.IdentityReference.GetHashCode">
50 <summary>Serves as a hash function for <see cref="T:System.Security.Principal.IdentityReference" />. <see cref="M:System.Security.Principal.IdentityReference.GetHashCode" /> is suitable for use in hashing algorithms and data structures like a hash table.</summary>
51 <returns>The hash code for this <see cref="T:System.Security.Principal.IdentityReference" /> object.</returns>
53 <member name="M:System.Security.Principal.IdentityReference.IsValidTargetType(System.Type)">
54 <summary>Returns a value that indicates whether the specified type is a valid translation type for the <see cref="T:System.Security.Principal.IdentityReference" /> class.</summary>
55 <returns>true if <paramref name="targetType" /> is a valid translation type for the <see cref="T:System.Security.Principal.IdentityReference" /> class; otherwise, false.</returns>
56 <param name="targetType">The type being queried for validity to serve as a conversion from <see cref="T:System.Security.Principal.IdentityReference" />. The following target types are valid:<see cref="T:System.Security.Principal.NTAccount" /><see cref="T:System.Security.Principal.SecurityIdentifier" /></param>
58 <member name="M:System.Security.Principal.IdentityReference.op_Equality(System.Security.Principal.IdentityReference,System.Security.Principal.IdentityReference)">
59 <summary>Compares two <see cref="T:System.Security.Principal.IdentityReference" /> 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" /> property or if they are both null.</summary>
60 <returns>true if <paramref name="left" /> and <paramref name="right" /> are equal; otherwise, false.</returns>
61 <param name="left">The left <see cref="T:System.Security.Principal.IdentityReference" /> operand to use for the equality comparison. This parameter can be null.</param>
62 <param name="right">The right <see cref="T:System.Security.Principal.IdentityReference" /> operand to use for the equality comparison. This parameter can be null.</param>
64 <member name="M:System.Security.Principal.IdentityReference.op_Inequality(System.Security.Principal.IdentityReference,System.Security.Principal.IdentityReference)">
65 <summary>Compares two <see cref="T:System.Security.Principal.IdentityReference" /> 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" /> property or if one of the objects is null and the other is not.</summary>
66 <returns>true if <paramref name="left" /> and <paramref name="right" /> are not equal; otherwise, false.</returns>
67 <param name="left">The left <see cref="T:System.Security.Principal.IdentityReference" /> operand to use for the inequality comparison. This parameter can be null.</param>
68 <param name="right">The right <see cref="T:System.Security.Principal.IdentityReference" /> operand to use for the inequality comparison. This parameter can be null.</param>
70 <member name="M:System.Security.Principal.IdentityReference.ToString">
71 <summary>Returns the string representation of the identity represented by the <see cref="T:System.Security.Principal.IdentityReference" /> object.</summary>
72 <returns>The identity in string format.</returns>
74 <member name="M:System.Security.Principal.IdentityReference.Translate(System.Type)">
75 <summary>Translates the account name represented by the <see cref="T:System.Security.Principal.IdentityReference" /> object into another <see cref="T:System.Security.Principal.IdentityReference" />-derived type.</summary>
76 <returns>The converted identity.</returns>
77 <param name="targetType">The target type for the conversion from <see cref="T:System.Security.Principal.IdentityReference" />. </param>
79 <member name="P:System.Security.Principal.IdentityReference.Value">
80 <summary>Gets the string value of the identity represented by the <see cref="T:System.Security.Principal.IdentityReference" /> object.</summary>
81 <returns>The string value of the identity represented by the <see cref="T:System.Security.Principal.IdentityReference" /> object.</returns>
83 <member name="T:System.Security.Principal.IdentityReferenceCollection">
84 <summary>Represents a collection of <see cref="T:System.Security.Principal.IdentityReference" /> objects and provides a means of converting sets of <see cref="T:System.Security.Principal.IdentityReference" />-derived objects to <see cref="T:System.Security.Principal.IdentityReference" />-derived types. </summary>
86 <member name="M:System.Security.Principal.IdentityReferenceCollection.#ctor">
87 <summary>Initializes a new instance of the <see cref="T:System.Security.Principal.IdentityReferenceCollection" /> class with zero items in the collection.</summary>
89 <member name="M:System.Security.Principal.IdentityReferenceCollection.#ctor(System.Int32)">
90 <summary>Initializes a new instance of the <see cref="T:System.Security.Principal.IdentityReferenceCollection" /> class by using the specified initial size.</summary>
91 <param name="capacity">The initial number of items in the collection. The value of <paramref name="capacity" /> is a hint only; it is not necessarily the maximum number of items created.</param>
93 <member name="M:System.Security.Principal.IdentityReferenceCollection.Add(System.Security.Principal.IdentityReference)">
94 <summary>Adds an <see cref="T:System.Security.Principal.IdentityReference" /> object to the <see cref="T:System.Security.Principal.IdentityReferenceCollection" /> collection.</summary>
95 <param name="identity">The <see cref="T:System.Security.Principal.IdentityReference" /> object to add to the collection.</param>
97 <member name="M:System.Security.Principal.IdentityReferenceCollection.Clear">
98 <summary>Clears all <see cref="T:System.Security.Principal.IdentityReference" /> objects from the <see cref="T:System.Security.Principal.IdentityReferenceCollection" /> collection.</summary>
100 <member name="M:System.Security.Principal.IdentityReferenceCollection.Contains(System.Security.Principal.IdentityReference)">
101 <summary>Indicates whether the <see cref="T:System.Security.Principal.IdentityReferenceCollection" /> collection contains the specified <see cref="T:System.Security.Principal.IdentityReference" /> object.</summary>
102 <returns>true if the collection contains the specified object.</returns>
103 <param name="identity">The <see cref="T:System.Security.Principal.IdentityReference" /> object to check for.</param>
105 <member name="M:System.Security.Principal.IdentityReferenceCollection.CopyTo(System.Security.Principal.IdentityReference[],System.Int32)">
106 <summary>Copies the <see cref="T:System.Security.Principal.IdentityReferenceCollection" /> collection to an <see cref="T:System.Security.Principal.IdentityReferenceCollection" /> array, starting at the specified index.</summary>
107 <param name="array">An <see cref="T:System.Security.Principal.IdentityReferenceCollection" /> array object to which the <see cref="T:System.Security.Principal.IdentityReferenceCollection" /> collection is to be copied.</param>
108 <param name="offset">The zero-based index in <paramref name="array" /> where the <see cref="T:System.Security.Principal.IdentityReferenceCollection" /> collection is to be copied.</param>
110 <member name="P:System.Security.Principal.IdentityReferenceCollection.Count">
111 <summary>Gets the number of items in the <see cref="T:System.Security.Principal.IdentityReferenceCollection" /> collection.</summary>
112 <returns>The number of <see cref="T:System.Security.Principal.IdentityReference" /> objects in the <see cref="T:System.Security.Principal.IdentityReferenceCollection" /> collection.</returns>
114 <member name="M:System.Security.Principal.IdentityReferenceCollection.GetEnumerator">
115 <summary>Gets an enumerator that can be used to iterate through the <see cref="T:System.Security.Principal.IdentityReferenceCollection" /> collection.</summary>
116 <returns>An enumerator for the <see cref="T:System.Security.Principal.IdentityReferenceCollection" /> collection.</returns>
118 <member name="P:System.Security.Principal.IdentityReferenceCollection.Item(System.Int32)">
119 <summary>Sets or gets the node at the specified index of the <see cref="T:System.Security.Principal.IdentityReferenceCollection" /> collection.</summary>
120 <returns>The <see cref="T:System.Security.Principal.IdentityReference" /> at the specified index in the collection. If <paramref name="index" /> is greater than or equal to the number of nodes in the collection, the return value is null.</returns>
121 <param name="index">The zero-based index in the <see cref="T:System.Security.Principal.IdentityReferenceCollection" /> collection.</param>
123 <member name="M:System.Security.Principal.IdentityReferenceCollection.Remove(System.Security.Principal.IdentityReference)">
124 <summary>Removes the specified <see cref="T:System.Security.Principal.IdentityReference" /> object from the collection.</summary>
125 <returns>true if the specified object was removed from the collection.</returns>
126 <param name="identity">The <see cref="T:System.Security.Principal.IdentityReference" /> object to remove.</param>
128 <member name="P:System.Security.Principal.IdentityReferenceCollection.System#Collections#Generic#ICollection{T}#IsReadOnly"></member>
129 <member name="M:System.Security.Principal.IdentityReferenceCollection.System#Collections#IEnumerable#GetEnumerator">
130 <summary>Gets an enumerator that can be used to iterate through the <see cref="T:System.Security.Principal.IdentityReferenceCollection" /> collection.</summary>
131 <returns>An enumerator for the <see cref="T:System.Security.Principal.IdentityReferenceCollection" /> collection.</returns>
133 <member name="M:System.Security.Principal.IdentityReferenceCollection.Translate(System.Type)">
134 <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)" /> with the second parameter set to false, which means that exceptions will not be thrown for items that fail conversion.</summary>
135 <returns>A <see cref="T:System.Security.Principal.IdentityReferenceCollection" /> collection that represents the converted contents of the original collection.</returns>
136 <param name="targetType">The type to which items in the collection are being converted.</param>
138 <IPermission class="System.Security.Permissions.ReflectionPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="MemberAccess" />
141 <member name="M:System.Security.Principal.IdentityReferenceCollection.Translate(System.Type,System.Boolean)">
142 <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>
143 <returns>A <see cref="T:System.Security.Principal.IdentityReferenceCollection" /> collection that represents the converted contents of the original collection.</returns>
144 <param name="targetType">The type to which items in the collection are being converted.</param>
145 <param name="forceSuccess">A Boolean value that determines how conversion errors are handled.If <paramref name="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 <paramref name="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>
147 <IPermission class="System.Security.Permissions.ReflectionPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="MemberAccess" />
150 <member name="T:System.Security.Principal.NTAccount">
151 <summary>Represents a user or group account.</summary>
153 <member name="M:System.Security.Principal.NTAccount.#ctor(System.String)">
154 <summary>Initializes a new instance of the <see cref="T:System.Security.Principal.NTAccount" /> class by using the specified name.</summary>
155 <param name="name">The name used to create the <see cref="T:System.Security.Principal.NTAccount" /> object. This parameter cannot be null or an empty string.</param>
156 <exception cref="T:System.ArgumentNullException">
157 <paramref name="name" /> is null.</exception>
158 <exception cref="T:System.ArgumentException">
159 <paramref name="name" /> is an empty string.-or-<paramref name="name" /> is too long.</exception>
161 <member name="M:System.Security.Principal.NTAccount.#ctor(System.String,System.String)">
162 <summary>Initializes a new instance of the <see cref="T:System.Security.Principal.NTAccount" /> class by using the specified domain name and account name. </summary>
163 <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>
164 <param name="accountName">The name of the account. This parameter cannot be null or an empty string.</param>
165 <exception cref="T:System.ArgumentNullException">
166 <paramref name="accountName" /> is null.</exception>
167 <exception cref="T:System.ArgumentException">
168 <paramref name="accountName" /> is an empty string.-or-<paramref name="accountName" /> is too long.-or-<paramref name="domainName" /> is too long.</exception>
170 <member name="M:System.Security.Principal.NTAccount.Equals(System.Object)">
171 <summary>Returns a value that indicates whether this <see cref="T:System.Security.Principal.NTAccount" /> object is equal to a specified object.</summary>
172 <returns>true if <paramref name="o" /> is an object with the same underlying type and value as this <see cref="T:System.Security.Principal.NTAccount" /> object; otherwise, false.</returns>
173 <param name="o">An object to compare with this <see cref="T:System.Security.Principal.NTAccount" /> object, or null.</param>
175 <member name="M:System.Security.Principal.NTAccount.GetHashCode">
176 <summary>Serves as a hash function for the current <see cref="T:System.Security.Principal.NTAccount" /> object. The <see cref="M:System.Security.Principal.NTAccount.GetHashCode" /> method is suitable for hashing algorithms and data structures like a hash table.</summary>
177 <returns>A hash value for the current <see cref="T:System.Security.Principal.NTAccount" /> object.</returns>
179 <member name="M:System.Security.Principal.NTAccount.IsValidTargetType(System.Type)">
180 <summary>Returns a value that indicates whether the specified type is a valid translation type for the <see cref="T:System.Security.Principal.NTAccount" /> class.</summary>
181 <returns>true if <paramref name="targetType" /> is a valid translation type for the <see cref="T:System.Security.Principal.NTAccount" /> class; otherwise false.</returns>
182 <param name="targetType">The type being queried for validity to serve as a conversion from <see cref="T:System.Security.Principal.NTAccount" />. The following target types are valid:- <see cref="T:System.Security.Principal.NTAccount" />- <see cref="T:System.Security.Principal.SecurityIdentifier" /></param>
184 <member name="M:System.Security.Principal.NTAccount.op_Equality(System.Security.Principal.NTAccount,System.Security.Principal.NTAccount)">
185 <summary>Compares two <see cref="T:System.Security.Principal.NTAccount" /> 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" /> property or if they are both null. </summary>
186 <returns>true if <paramref name="left" /> and <paramref name="right" /> are equal; otherwise false.</returns>
187 <param name="left">The left operand to use for the equality comparison. This parameter can be null.</param>
188 <param name="right">The right operand to use for the equality comparison. This parameter can be null.</param>
190 <member name="M:System.Security.Principal.NTAccount.op_Inequality(System.Security.Principal.NTAccount,System.Security.Principal.NTAccount)">
191 <summary>Compares two <see cref="T:System.Security.Principal.NTAccount" /> 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" /> property or if one of the objects is null and the other is not.</summary>
192 <returns>true if <paramref name="left" /> and <paramref name="right" /> are not equal; otherwise false.</returns>
193 <param name="left">The left operand to use for the inequality comparison. This parameter can be null.</param>
194 <param name="right">The right operand to use for the inequality comparison. This parameter can be null.</param>
196 <member name="M:System.Security.Principal.NTAccount.ToString">
197 <summary>Returns the account name, in Domain\Account format, for the account represented by the <see cref="T:System.Security.Principal.NTAccount" /> object.</summary>
198 <returns>The account name, in Domain\Account format.</returns>
200 <member name="M:System.Security.Principal.NTAccount.Translate(System.Type)">
201 <summary>Translates the account name represented by the <see cref="T:System.Security.Principal.NTAccount" /> object into another <see cref="T:System.Security.Principal.IdentityReference" />-derived type.</summary>
202 <returns>The converted identity.</returns>
203 <param name="targetType">The target type for the conversion from <see cref="T:System.Security.Principal.NTAccount" />. The target type must be a type that is considered valid by the <see cref="M:System.Security.Principal.NTAccount.IsValidTargetType(System.Type)" /> method. </param>
204 <exception cref="T:System.ArgumentNullException">
205 <paramref name="targetType " />is null.</exception>
206 <exception cref="T:System.ArgumentException">
207 <paramref name="targetType " />is not an <see cref="T:System.Security.Principal.IdentityReference" /> type.</exception>
208 <exception cref="T:System.Security.Principal.IdentityNotMappedException">Some or all identity references could not be translated.</exception>
209 <exception cref="T:System.SystemException">The source account name is too long.-or-A Win32 error code was returned.</exception>
211 <IPermission class="System.Security.Permissions.ReflectionPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="MemberAccess" />
214 <member name="P:System.Security.Principal.NTAccount.Value">
215 <summary>Returns an uppercase string representation of this <see cref="T:System.Security.Principal.NTAccount" /> object.</summary>
216 <returns>The uppercase string representation of this <see cref="T:System.Security.Principal.NTAccount" /> object.</returns>
218 <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="UnmanagedCode" />
221 <member name="T:System.Security.Principal.SecurityIdentifier">
222 <summary>Represents a security identifier (SID) and provides marshaling and comparison operations for SIDs.</summary>
224 <member name="M:System.Security.Principal.SecurityIdentifier.#ctor(System.Byte[],System.Int32)">
225 <summary>Initializes a new instance of the <see cref="T:System.Security.Principal.SecurityIdentifier" /> class by using a specified binary representation of a security identifier (SID).</summary>
226 <param name="binaryForm">The byte array that represents the SID.</param>
227 <param name="offset">The byte offset to use as the starting index in <paramref name="binaryForm" />. </param>
229 <member name="M:System.Security.Principal.SecurityIdentifier.#ctor(System.IntPtr)">
230 <summary>Initializes a new instance of the <see cref="T:System.Security.Principal.SecurityIdentifier" /> class by using an integer that represents the binary form of a security identifier (SID).</summary>
231 <param name="binaryForm">An integer that represents the binary form of a SID.</param>
233 <member name="M:System.Security.Principal.SecurityIdentifier.#ctor(System.Security.Principal.WellKnownSidType,System.Security.Principal.SecurityIdentifier)">
234 <summary>Initializes a new instance of the <see cref="T:System.Security.Principal.SecurityIdentifier" /> class by using the specified well known security identifier (SID) type and domain SID.</summary>
235 <param name="sidType">One of the enumeration values. This value must not be <see cref="F:System.Security.Principal.WellKnownSidType.LogonIdsSid" />.</param>
236 <param name="domainSid">The domain SID. This value is required for the following <see cref="T:System.Security.Principal.WellKnownSidType" /> values. This parameter is ignored for any other <see cref="T:System.Security.Principal.WellKnownSidType" /> values.- <see cref="F:System.Security.Principal.WellKnownSidType.AccountAdministratorSid" />- <see cref="F:System.Security.Principal.WellKnownSidType.AccountGuestSid" />- <see cref="F:System.Security.Principal.WellKnownSidType.AccountKrbtgtSid" />- <see cref="F:System.Security.Principal.WellKnownSidType.AccountDomainAdminsSid" />- <see cref="F:System.Security.Principal.WellKnownSidType.AccountDomainUsersSid" />- <see cref="F:System.Security.Principal.WellKnownSidType.AccountDomainGuestsSid" />- <see cref="F:System.Security.Principal.WellKnownSidType.AccountComputersSid" />- <see cref="F:System.Security.Principal.WellKnownSidType.AccountControllersSid" />- <see cref="F:System.Security.Principal.WellKnownSidType.AccountCertAdminsSid" />- <see cref="F:System.Security.Principal.WellKnownSidType.AccountSchemaAdminsSid" />- <see cref="F:System.Security.Principal.WellKnownSidType.AccountEnterpriseAdminsSid" />- <see cref="F:System.Security.Principal.WellKnownSidType.AccountPolicyAdminsSid" />- <see cref="F:System.Security.Principal.WellKnownSidType.AccountRasAndIasServersSid" /></param>
238 <member name="M:System.Security.Principal.SecurityIdentifier.#ctor(System.String)">
239 <summary>Initializes a new instance of the <see cref="T:System.Security.Principal.SecurityIdentifier" /> class by using the specified security identifier (SID) in Security Descriptor Definition Language (SDDL) format.</summary>
240 <param name="sddlForm">SDDL string for the SID used to create the <see cref="T:System.Security.Principal.SecurityIdentifier" /> object.</param>
242 <member name="P:System.Security.Principal.SecurityIdentifier.AccountDomainSid">
243 <summary>Returns the account domain security identifier (SID) portion from the SID represented by the <see cref="T:System.Security.Principal.SecurityIdentifier" /> 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" />.</summary>
244 <returns>The account domain SID portion from the SID represented by the <see cref="T:System.Security.Principal.SecurityIdentifier" /> object if the SID represents a Windows account SID; otherwise, it returns <see cref="T:System.ArgumentNullException" />.</returns>
246 <member name="P:System.Security.Principal.SecurityIdentifier.BinaryLength">
247 <summary>Returns the length, in bytes, of the security identifier (SID) represented by the <see cref="T:System.Security.Principal.SecurityIdentifier" /> object.</summary>
248 <returns>The length, in bytes, of the SID represented by the <see cref="T:System.Security.Principal.SecurityIdentifier" /> object.</returns>
250 <member name="M:System.Security.Principal.SecurityIdentifier.CompareTo(System.Security.Principal.SecurityIdentifier)">
251 <summary>Compares the current <see cref="T:System.Security.Principal.SecurityIdentifier" /> object with the specified <see cref="T:System.Security.Principal.SecurityIdentifier" /> object.</summary>
252 <returns>A signed number indicating the relative values of this instance and <paramref name="sid" />.Return Value Description Less than zero This instance is less than <paramref name="sid" />. Zero This instance is equal to <paramref name="sid" />. Greater than zero This instance is greater than <paramref name="sid" />. </returns>
253 <param name="sid">The object to compare with the current object.</param>
255 <member name="M:System.Security.Principal.SecurityIdentifier.Equals(System.Object)">
256 <summary>Returns a value that indicates whether this <see cref="T:System.Security.Principal.SecurityIdentifier" /> object is equal to a specified object.</summary>
257 <returns>true if <paramref name="o" /> is an object with the same underlying type and value as this <see cref="T:System.Security.Principal.SecurityIdentifier" /> object; otherwise, false.</returns>
258 <param name="o">An object to compare with this <see cref="T:System.Security.Principal.SecurityIdentifier" /> object, or null.</param>
260 <member name="M:System.Security.Principal.SecurityIdentifier.Equals(System.Security.Principal.SecurityIdentifier)">
261 <summary>Indicates whether the specified <see cref="T:System.Security.Principal.SecurityIdentifier" /> object is equal to the current <see cref="T:System.Security.Principal.SecurityIdentifier" /> object.</summary>
262 <returns>true if the value of <paramref name="sid" /> is equal to the value of the current <see cref="T:System.Security.Principal.SecurityIdentifier" /> object.</returns>
263 <param name="sid">The object to compare with the current object.</param>
265 <member name="M:System.Security.Principal.SecurityIdentifier.GetBinaryForm(System.Byte[],System.Int32)">
266 <summary>Copies the binary representation of the specified security identifier (SID) represented by the <see cref="T:System.Security.Principal.SecurityIdentifier" /> class to a byte array.</summary>
267 <param name="binaryForm">The byte array to receive the copied SID.</param>
268 <param name="offset">The byte offset to use as the starting index in <paramref name="binaryForm" />. </param>
270 <member name="M:System.Security.Principal.SecurityIdentifier.GetHashCode">
271 <summary>Serves as a hash function for the current <see cref="T:System.Security.Principal.SecurityIdentifier" /> object. The <see cref="M:System.Security.Principal.SecurityIdentifier.GetHashCode" /> method is suitable for hashing algorithms and data structures like a hash table.</summary>
272 <returns>A hash value for the current <see cref="T:System.Security.Principal.SecurityIdentifier" /> object.</returns>
274 <member name="M:System.Security.Principal.SecurityIdentifier.IsAccountSid">
275 <summary>Returns a value that indicates whether the security identifier (SID) represented by this <see cref="T:System.Security.Principal.SecurityIdentifier" /> object is a valid Windows account SID.</summary>
276 <returns>true if the SID represented by this <see cref="T:System.Security.Principal.SecurityIdentifier" /> object is a valid Windows account SID; otherwise, false.</returns>
278 <member name="M:System.Security.Principal.SecurityIdentifier.IsEqualDomainSid(System.Security.Principal.SecurityIdentifier)">
279 <summary>Returns a value that indicates whether the security identifier (SID) represented by this <see cref="T:System.Security.Principal.SecurityIdentifier" /> object is from the same domain as the specified SID.</summary>
280 <returns>true if the SID represented by this <see cref="T:System.Security.Principal.SecurityIdentifier" /> object is in the same domain as the <paramref name="sid" /> SID; otherwise, false.</returns>
281 <param name="sid">The SID to compare with this <see cref="T:System.Security.Principal.SecurityIdentifier" /> object.</param>
283 <member name="M:System.Security.Principal.SecurityIdentifier.IsValidTargetType(System.Type)">
284 <summary>Returns a value that indicates whether the specified type is a valid translation type for the <see cref="T:System.Security.Principal.SecurityIdentifier" /> class.</summary>
285 <returns>true if <paramref name="targetType" /> is a valid translation type for the <see cref="T:System.Security.Principal.SecurityIdentifier" /> class; otherwise, false.</returns>
286 <param name="targetType">The type being queried for validity to serve as a conversion from <see cref="T:System.Security.Principal.SecurityIdentifier" />. The following target types are valid:- <see cref="T:System.Security.Principal.NTAccount" />- <see cref="T:System.Security.Principal.SecurityIdentifier" /></param>
288 <member name="M:System.Security.Principal.SecurityIdentifier.IsWellKnown(System.Security.Principal.WellKnownSidType)">
289 <summary>Returns a value that indicates whether the <see cref="T:System.Security.Principal.SecurityIdentifier" /> object matches the specified well known security identifier (SID) type. </summary>
290 <returns>true if <paramref name="type" /> is the SID type for the <see cref="T:System.Security.Principal.SecurityIdentifier" /> object; otherwise, false.</returns>
291 <param name="type">A value to compare with the <see cref="T:System.Security.Principal.SecurityIdentifier" /> object.</param>
293 <member name="F:System.Security.Principal.SecurityIdentifier.MaxBinaryLength">
294 <summary>Returns the maximum size, in bytes, of the binary representation of the security identifier.</summary>
296 <member name="F:System.Security.Principal.SecurityIdentifier.MinBinaryLength">
297 <summary>Returns the minimum size, in bytes, of the binary representation of the security identifier.</summary>
299 <member name="M:System.Security.Principal.SecurityIdentifier.op_Equality(System.Security.Principal.SecurityIdentifier,System.Security.Principal.SecurityIdentifier)">
300 <summary>Compares two <see cref="T:System.Security.Principal.SecurityIdentifier" /> 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" /> property or if they are both null. </summary>
301 <returns>true if <paramref name="left" /> and <paramref name="right" /> are equal; otherwise, false.</returns>
302 <param name="left">The left operand to use for the equality comparison. This parameter can be null.</param>
303 <param name="right">The right operand to use for the equality comparison. This parameter can be null.</param>
305 <member name="M:System.Security.Principal.SecurityIdentifier.op_Inequality(System.Security.Principal.SecurityIdentifier,System.Security.Principal.SecurityIdentifier)">
306 <summary>Compares two <see cref="T:System.Security.Principal.SecurityIdentifier" /> 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" /> property or if one of the objects is null and the other is not.</summary>
307 <returns>true if <paramref name="left" /> and <paramref name="right" /> are not equal; otherwise, false.</returns>
308 <param name="left">The left operand to use for the inequality comparison. This parameter can be null.</param>
309 <param name="right">The right operand to use for the inequality comparison. This parameter can be null.</param>
311 <member name="M:System.Security.Principal.SecurityIdentifier.ToString">
312 <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" /> object. An example of the SDDL format is S-1-5-9. </summary>
313 <returns>The SID, in SDDL format, for the account represented by the <see cref="T:System.Security.Principal.SecurityIdentifier" /> object.</returns>
315 <member name="M:System.Security.Principal.SecurityIdentifier.Translate(System.Type)">
316 <summary>Translates the account name represented by the <see cref="T:System.Security.Principal.SecurityIdentifier" /> object into another <see cref="T:System.Security.Principal.IdentityReference" />-derived type.</summary>
317 <returns>The converted identity.</returns>
318 <param name="targetType">The target type for the conversion from <see cref="T:System.Security.Principal.SecurityIdentifier" />. The target type must be a type that is considered valid by the <see cref="M:System.Security.Principal.SecurityIdentifier.IsValidTargetType(System.Type)" /> method.</param>
319 <exception cref="T:System.ArgumentNullException">
320 <paramref name="targetType " />is null.</exception>
321 <exception cref="T:System.ArgumentException">
322 <paramref name="targetType " />is not an <see cref="T:System.Security.Principal.IdentityReference" /> type.</exception>
323 <exception cref="T:System.Security.Principal.IdentityNotMappedException">Some or all identity references could not be translated.</exception>
324 <exception cref="T:System.SystemException">A Win32 error code was returned.</exception>
326 <IPermission class="System.Security.Permissions.ReflectionPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="MemberAccess" />
329 <member name="P:System.Security.Principal.SecurityIdentifier.Value">
330 <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" /> object.</summary>
331 <returns>An uppercase SDDL string for the SID represented by the <see cref="T:System.Security.Principal.SecurityIdentifier" /> object.</returns>
333 <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="UnmanagedCode" />
336 <member name="T:System.Security.Principal.TokenAccessLevels">
337 <summary>Defines the privileges of the user account associated with the access token. </summary>
339 <member name="F:System.Security.Principal.TokenAccessLevels.AdjustDefault">
340 <summary>The user can change the default owner, primary group, or discretionary access control list (DACL) of the token.</summary>
342 <member name="F:System.Security.Principal.TokenAccessLevels.AdjustGroups">
343 <summary>The user can change the attributes of the groups in the token.</summary>
345 <member name="F:System.Security.Principal.TokenAccessLevels.AdjustPrivileges">
346 <summary>The user can enable or disable privileges in the token.</summary>
348 <member name="F:System.Security.Principal.TokenAccessLevels.AdjustSessionId">
349 <summary>The user can adjust the session identifier of the token.</summary>
351 <member name="F:System.Security.Principal.TokenAccessLevels.AllAccess">
352 <summary>The user has all possible access to the token.</summary>
354 <member name="F:System.Security.Principal.TokenAccessLevels.AssignPrimary">
355 <summary>The user can attach a primary token to a process.</summary>
357 <member name="F:System.Security.Principal.TokenAccessLevels.Duplicate">
358 <summary>The user can duplicate the token.</summary>
360 <member name="F:System.Security.Principal.TokenAccessLevels.Impersonate">
361 <summary>The user can impersonate a client.</summary>
363 <member name="F:System.Security.Principal.TokenAccessLevels.MaximumAllowed">
364 <summary>The maximum value that can be assigned for the <see cref="T:System.Security.Principal.TokenAccessLevels" /> enumeration.</summary>
366 <member name="F:System.Security.Principal.TokenAccessLevels.Query">
367 <summary>The user can query the token.</summary>
369 <member name="F:System.Security.Principal.TokenAccessLevels.QuerySource">
370 <summary>The user can query the source of the token.</summary>
372 <member name="F:System.Security.Principal.TokenAccessLevels.Read">
373 <summary>The user has standard read rights and the <see cref="F:System.Security.Principal.TokenAccessLevels.Query" /> privilege for the token.</summary>
375 <member name="F:System.Security.Principal.TokenAccessLevels.Write">
376 <summary>The user has standard write rights and the <see cref="F:System.Security.Principal.TokenAccessLevels.AdjustPrivileges,F:System.Security.Principal.TokenAccessLevels.AdjustGroups" />, and <see cref="F:System.Security.Principal.TokenAccessLevels.AdjustDefault" /> privileges for the token.</summary>
378 <member name="T:System.Security.Principal.WellKnownSidType">
379 <summary>Defines a set of commonly used security identifiers (SIDs).</summary>
381 <member name="F:System.Security.Principal.WellKnownSidType.AccountAdministratorSid">
382 <summary>Indicates a SID that matches the account administrators group.</summary>
384 <member name="F:System.Security.Principal.WellKnownSidType.AccountCertAdminsSid">
385 <summary>Indicates a SID that matches the certificate administrators group.</summary>
387 <member name="F:System.Security.Principal.WellKnownSidType.AccountComputersSid">
388 <summary>Indicates a SID that matches the account computer group.</summary>
390 <member name="F:System.Security.Principal.WellKnownSidType.AccountControllersSid">
391 <summary>Indicates a SID that matches the account controller group.</summary>
393 <member name="F:System.Security.Principal.WellKnownSidType.AccountDomainAdminsSid">
394 <summary>Indicates a SID that matches the account domain administrator group.</summary>
396 <member name="F:System.Security.Principal.WellKnownSidType.AccountDomainGuestsSid">
397 <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>
402 <member name="F:System.Security.Principal.WellKnownSidType.AccountEnterpriseAdminsSid">
403 <summary>Indicates a SID that matches the enterprise administrators group.</summary>
405 <member name="F:System.Security.Principal.WellKnownSidType.AccountGuestSid">
406 <summary>Indicates a SID that matches the account guest group.</summary>
408 <member name="F:System.Security.Principal.WellKnownSidType.AccountKrbtgtSid">
409 <summary>Indicates a SID that matches the account Kerberos target group.</summary>
411 <member name="F:System.Security.Principal.WellKnownSidType.AccountPolicyAdminsSid">
412 <summary>Indicates a SID that matches the policy administrators group.</summary>
414 <member name="F:System.Security.Principal.WellKnownSidType.AccountRasAndIasServersSid">
415 <summary>Indicates a SID that matches the RAS and IAS server account.</summary>
417 <member name="F:System.Security.Principal.WellKnownSidType.AccountSchemaAdminsSid">
418 <summary>Indicates a SID that matches the schema administrators group.</summary>
420 <member name="F:System.Security.Principal.WellKnownSidType.AnonymousSid">
421 <summary>Indicates a SID for the anonymous account.</summary>
423 <member name="F:System.Security.Principal.WellKnownSidType.AuthenticatedUserSid">
424 <summary>Indicates a SID for an authenticated user.</summary>
426 <member name="F:System.Security.Principal.WellKnownSidType.BatchSid">
427 <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>
429 <member name="F:System.Security.Principal.WellKnownSidType.BuiltinAccountOperatorsSid">
430 <summary>Indicates a SID that matches the account operators account.</summary>
432 <member name="F:System.Security.Principal.WellKnownSidType.BuiltinAdministratorsSid">
433 <summary>Indicates a SID that matches the administrator account.</summary>
435 <member name="F:System.Security.Principal.WellKnownSidType.BuiltinAuthorizationAccessSid">
436 <summary>Indicates a SID that matches the Windows Authorization Access group.</summary>
438 <member name="F:System.Security.Principal.WellKnownSidType.BuiltinBackupOperatorsSid">
439 <summary>Indicates a SID that matches the backup operators group.</summary>
441 <member name="F:System.Security.Principal.WellKnownSidType.BuiltinDomainSid">
442 <summary>Indicates a SID that matches the domain account.</summary>
444 <member name="F:System.Security.Principal.WellKnownSidType.BuiltinGuestsSid">
445 <summary>Indicates a SID that matches the guest account.</summary>
447 <member name="F:System.Security.Principal.WellKnownSidType.BuiltinIncomingForestTrustBuildersSid">
448 <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>
450 <member name="F:System.Security.Principal.WellKnownSidType.BuiltinNetworkConfigurationOperatorsSid">
451 <summary>Indicates a SID that matches the network operators group.</summary>
453 <member name="F:System.Security.Principal.WellKnownSidType.BuiltinPerformanceLoggingUsersSid">
454 <summary>Indicates a SID that matches the group of users that have remote access to monitor the computer.</summary>
456 <member name="F:System.Security.Principal.WellKnownSidType.BuiltinPerformanceMonitoringUsersSid">
457 <summary>Indicates a SID that matches the group of users that have remote access to schedule logging of performance counters on this computer.</summary>
459 <member name="F:System.Security.Principal.WellKnownSidType.BuiltinPowerUsersSid">
460 <summary>Indicates a SID that matches the power users group.</summary>
462 <member name="F:System.Security.Principal.WellKnownSidType.BuiltinPreWindows2000CompatibleAccessSid">
463 <summary>Indicates a SID that matches pre-Windows 2000 compatible accounts.</summary>
465 <member name="F:System.Security.Principal.WellKnownSidType.BuiltinPrintOperatorsSid">
466 <summary>Indicates a SID that matches the print operators group.</summary>
468 <member name="F:System.Security.Principal.WellKnownSidType.BuiltinRemoteDesktopUsersSid">
469 <summary>Indicates a SID that matches remote desktop users.</summary>
471 <member name="F:System.Security.Principal.WellKnownSidType.BuiltinReplicatorSid">
472 <summary>Indicates a SID that matches the replicator account.</summary>
474 <member name="F:System.Security.Principal.WellKnownSidType.BuiltinSystemOperatorsSid">
475 <summary>Indicates a SID that matches the system operators group.</summary>
477 <member name="F:System.Security.Principal.WellKnownSidType.BuiltinUsersSid">
478 <summary>Indicates a SID that matches built-in user accounts.</summary>
480 <member name="F:System.Security.Principal.WellKnownSidType.CreatorGroupServerSid">
481 <summary>Indicates a creator group server SID.</summary>
483 <member name="F:System.Security.Principal.WellKnownSidType.CreatorGroupSid">
484 <summary>Indicates a SID that matches the creator group of an object.</summary>
486 <member name="F:System.Security.Principal.WellKnownSidType.CreatorOwnerServerSid">
487 <summary>Indicates a creator owner server SID.</summary>
489 <member name="F:System.Security.Principal.WellKnownSidType.CreatorOwnerSid">
490 <summary>Indicates a SID that matches the owner or creator of an object.</summary>
492 <member name="F:System.Security.Principal.WellKnownSidType.DialupSid">
493 <summary>Indicates a SID for a dial-up account.</summary>
495 <member name="F:System.Security.Principal.WellKnownSidType.DigestAuthenticationSid">
496 <summary>Indicates a SID present when the Microsoft Digest authentication package authenticated the client.</summary>
498 <member name="F:System.Security.Principal.WellKnownSidType.EnterpriseControllersSid">
499 <summary>Indicates a SID for an enterprise controller.</summary>
501 <member name="F:System.Security.Principal.WellKnownSidType.InteractiveSid">
502 <summary>Indicates a SID for an interactive account. This SID is added to the process of a token when it logs on interactively.</summary>
504 <member name="F:System.Security.Principal.WellKnownSidType.LocalServiceSid">
505 <summary>Indicates a SID that matches a local service.</summary>
507 <member name="F:System.Security.Principal.WellKnownSidType.LocalSid">
508 <summary>Indicates a local SID.</summary>
510 <member name="F:System.Security.Principal.WellKnownSidType.LocalSystemSid">
511 <summary>Indicates a SID that matches the local system.</summary>
513 <member name="F:System.Security.Principal.WellKnownSidType.LogonIdsSid">
514 <summary>Indicates a SID that matches logon IDs.</summary>
516 <member name="F:System.Security.Principal.WellKnownSidType.MaxDefined">
517 <summary>Indicates the maximum defined SID in the <see cref="T:System.Security.Principal.WellKnownSidType" /> enumeration.</summary>
519 <member name="F:System.Security.Principal.WellKnownSidType.NetworkServiceSid">
520 <summary>Indicates a SID that matches a network service.</summary>
522 <member name="F:System.Security.Principal.WellKnownSidType.NetworkSid">
523 <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>
525 <member name="F:System.Security.Principal.WellKnownSidType.NTAuthoritySid">
526 <summary>Indicates a SID for the Windows NT authority.</summary>
528 <member name="F:System.Security.Principal.WellKnownSidType.NtlmAuthenticationSid">
529 <summary>Indicates a SID present when the Microsoft NTLM authentication package authenticated the client.</summary>
531 <member name="F:System.Security.Principal.WellKnownSidType.NullSid">
532 <summary>Indicates a null SID.</summary>
534 <member name="F:System.Security.Principal.WellKnownSidType.OtherOrganizationSid">
535 <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" /> cannot be present.</summary>
537 <member name="F:System.Security.Principal.WellKnownSidType.ProxySid">
538 <summary>Indicates a proxy SID.</summary>
540 <member name="F:System.Security.Principal.WellKnownSidType.RemoteLogonIdSid">
541 <summary>Indicates a SID that matches remote logons.</summary>
543 <member name="F:System.Security.Principal.WellKnownSidType.RestrictedCodeSid">
544 <summary>Indicates a SID for restricted code.</summary>
546 <member name="F:System.Security.Principal.WellKnownSidType.SChannelAuthenticationSid">
547 <summary>Indicates a SID present when the Secure Channel (SSL/TLS) authentication package authenticated the client.</summary>
549 <member name="F:System.Security.Principal.WellKnownSidType.SelfSid">
550 <summary>Indicates a SID for self.</summary>
552 <member name="F:System.Security.Principal.WellKnownSidType.ServiceSid">
553 <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>
555 <member name="F:System.Security.Principal.WellKnownSidType.TerminalServerSid">
556 <summary>Indicates a SID that matches a terminal server account.</summary>
558 <member name="F:System.Security.Principal.WellKnownSidType.ThisOrganizationSid">
559 <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" /> cannot be present.</summary>
561 <member name="F:System.Security.Principal.WellKnownSidType.WinBuiltinTerminalServerLicenseServersSid">
562 <summary>Indicates a SID is present in a server that can issue Terminal Server licenses.</summary>
564 <member name="F:System.Security.Principal.WellKnownSidType.WorldSid">
565 <summary>Indicates a SID that matches everyone.</summary>
567 <member name="T:System.Security.Principal.WindowsBuiltInRole">
568 <summary>Specifies common roles to be used with <see cref="M:System.Security.Principal.WindowsPrincipal.IsInRole(System.String)" />.</summary>
570 <member name="F:System.Security.Principal.WindowsBuiltInRole.AccountOperator">
571 <summary>Account operators manage the user accounts on a computer or domain.</summary>
573 <member name="F:System.Security.Principal.WindowsBuiltInRole.Administrator">
574 <summary>Administrators have complete and unrestricted access to the computer or domain.</summary>
576 <member name="F:System.Security.Principal.WindowsBuiltInRole.BackupOperator">
577 <summary>Backup operators can override security restrictions for the sole purpose of backing up or restoring files.</summary>
579 <member name="F:System.Security.Principal.WindowsBuiltInRole.Guest">
580 <summary>Guests are more restricted than users.</summary>
582 <member name="F:System.Security.Principal.WindowsBuiltInRole.PowerUser">
583 <summary>Power users possess most administrative permissions with some restrictions. Thus, power users can run legacy applications, in addition to certified applications.</summary>
585 <member name="F:System.Security.Principal.WindowsBuiltInRole.PrintOperator">
586 <summary>Print operators can take control of a printer.</summary>
588 <member name="F:System.Security.Principal.WindowsBuiltInRole.Replicator">
589 <summary>Replicators support file replication in a domain.</summary>
591 <member name="F:System.Security.Principal.WindowsBuiltInRole.SystemOperator">
592 <summary>System operators manage a particular computer.</summary>
594 <member name="F:System.Security.Principal.WindowsBuiltInRole.User">
595 <summary>Users are prevented from making accidental or intentional system-wide changes. Thus, users can run certified applications, but not most legacy applications.</summary>
597 <member name="T:System.Security.Principal.WindowsIdentity">
598 <summary>Represents a Windows user.</summary>
600 <member name="M:System.Security.Principal.WindowsIdentity.#ctor(System.IntPtr)">
601 <summary>Initializes a new instance of the <see cref="T:System.Security.Principal.WindowsIdentity" /> class for the user represented by the specified Windows account token.</summary>
602 <param name="userToken">The account token for the user on whose behalf the code is running. </param>
603 <exception cref="T:System.ArgumentException">
604 <paramref name="userToken" /> is 0.-or-<paramref name="userToken" /> is duplicated and invalid for impersonation.</exception>
605 <exception cref="T:System.Security.SecurityException">The caller does not have the correct permissions. -or-A Win32 error occurred.</exception>
607 <member name="M:System.Security.Principal.WindowsIdentity.#ctor(System.IntPtr,System.String)">
608 <summary>Initializes a new instance of the <see cref="T:System.Security.Principal.WindowsIdentity" /> class for the user represented by the specified Windows account token and the specified authentication type.</summary>
609 <param name="userToken">The account token for the user on whose behalf the code is running. </param>
610 <param name="type">(Informational use only.) The type of authentication used to identify the user. For more information, see Remarks.</param>
611 <exception cref="T:System.ArgumentException">
612 <paramref name="userToken" /> is 0.-or-<paramref name="userToken" /> is duplicated and invalid for impersonation.</exception>
613 <exception cref="T:System.Security.SecurityException">The caller does not have the correct permissions. -or-A Win32 error occurred.</exception>
615 <member name="P:System.Security.Principal.WindowsIdentity.AccessToken">
616 <summary>[SECURITY CRITICAL] Gets this <see cref="T:Microsoft.Win32.SafeHandles.SafeAccessTokenHandle" /> for this <see cref="T:System.Security.Principal.WindowsIdentity" /> instance. </summary>
617 <returns>Returns a <see cref="T:Microsoft.Win32.SafeHandles.SafeAccessTokenHandle" />.</returns>
619 <member name="M:System.Security.Principal.WindowsIdentity.Dispose">
620 <summary>Releases all resources used by the <see cref="T:System.Security.Principal.WindowsIdentity" />. </summary>
622 <member name="M:System.Security.Principal.WindowsIdentity.Dispose(System.Boolean)">
623 <summary>Releases the unmanaged resources used by the <see cref="T:System.Security.Principal.WindowsIdentity" /> and optionally releases the managed resources. </summary>
624 <param name="disposing">true to release both managed and unmanaged resources; false to release only unmanaged resources. </param>
626 <member name="M:System.Security.Principal.WindowsIdentity.GetAnonymous">
627 <summary>Returns a <see cref="T:System.Security.Principal.WindowsIdentity" /> 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>
628 <returns>An object that represents an anonymous user.</returns>
630 <member name="M:System.Security.Principal.WindowsIdentity.GetCurrent">
631 <summary>Returns a <see cref="T:System.Security.Principal.WindowsIdentity" /> object that represents the current Windows user.</summary>
632 <returns>An object that represents the current user.</returns>
633 <exception cref="T:System.Security.SecurityException">The caller does not have the correct permissions. </exception>
635 <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="ControlPrincipal" />
638 <member name="M:System.Security.Principal.WindowsIdentity.GetCurrent(System.Boolean)">
639 <summary>Returns a <see cref="T:System.Security.Principal.WindowsIdentity" /> object that represents the Windows identity for either the thread or the process, depending on the value of the <paramref name="ifImpersonating" /> parameter.</summary>
640 <returns>An object that represents a Windows user.</returns>
641 <param name="ifImpersonating">true to return the <see cref="T:System.Security.Principal.WindowsIdentity" /> only if the thread is currently impersonating; false to return the <see cref="T:System.Security.Principal.WindowsIdentity" /> of the thread if it is impersonating or the <see cref="T:System.Security.Principal.WindowsIdentity" /> of the process if the thread is not currently impersonating.</param>
643 <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="ControlPrincipal" />
646 <member name="M:System.Security.Principal.WindowsIdentity.GetCurrent(System.Security.Principal.TokenAccessLevels)">
647 <summary>Returns a <see cref="T:System.Security.Principal.WindowsIdentity" /> object that represents the current Windows user, using the specified desired token access level.</summary>
648 <returns>An object that represents the current user.</returns>
649 <param name="desiredAccess">A bitwise combination of the enumeration values. </param>
651 <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="ControlPrincipal" />
654 <member name="P:System.Security.Principal.WindowsIdentity.Groups">
655 <summary>Gets the groups the current Windows user belongs to.</summary>
656 <returns>An object representing the groups the current Windows user belongs to.</returns>
658 <member name="P:System.Security.Principal.WindowsIdentity.ImpersonationLevel">
659 <summary>Gets the impersonation level for the user.</summary>
660 <returns>One of the enumeration values that specifies the impersonation level. </returns>
662 <member name="P:System.Security.Principal.WindowsIdentity.IsAnonymous">
663 <summary>Gets a value that indicates whether the user account is identified as an anonymous account by the system.</summary>
664 <returns>true if the user account is an anonymous account; otherwise, false.</returns>
666 <member name="P:System.Security.Principal.WindowsIdentity.IsGuest">
667 <summary>Gets a value indicating whether the user account is identified as a <see cref="F:System.Security.Principal.WindowsAccountType.Guest" /> account by the system.</summary>
668 <returns>true if the user account is a <see cref="F:System.Security.Principal.WindowsAccountType.Guest" /> account; otherwise, false.</returns>
670 <member name="P:System.Security.Principal.WindowsIdentity.IsSystem">
671 <summary>Gets a value indicating whether the user account is identified as a <see cref="F:System.Security.Principal.WindowsAccountType.System" /> account by the system.</summary>
672 <returns>true if the user account is a <see cref="F:System.Security.Principal.WindowsAccountType.System" /> account; otherwise, false.</returns>
674 <member name="P:System.Security.Principal.WindowsIdentity.Owner">
675 <summary>Gets the security identifier (SID) for the token owner.</summary>
676 <returns>An object for the token owner.</returns>
678 <member name="M:System.Security.Principal.WindowsIdentity.RunImpersonated(Microsoft.Win32.SafeHandles.SafeAccessTokenHandle,System.Action)">
679 <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" />, you can use <see cref="M:System.Security.Principal.WindowsIdentity.RunImpersonated(Microsoft.Win32.SafeHandles.SafeAccessTokenHandle,System.Action)" /> and provide your function directly as a parameter.</summary>
680 <param name="safeAccessTokenHandle">The SafeAccessTokenHandle of the impersonated Windows identity.</param>
681 <param name="action">The System.Action to run. </param>
683 <member name="M:System.Security.Principal.WindowsIdentity.RunImpersonated``1(Microsoft.Win32.SafeHandles.SafeAccessTokenHandle,System.Func{``0})">
684 <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" />, you can use <see cref="M:System.Security.Principal.WindowsIdentity.RunImpersonated(Microsoft.Win32.SafeHandles.SafeAccessTokenHandle,System.Action)" /> and provide your function directly as a parameter.</summary>
685 <returns>Returns the result of the function.</returns>
686 <param name="safeAccessTokenHandle">The SafeAccessTokenHandle of the impersonated Windows identity.</param>
687 <param name="func">The System.Func to run.</param>
688 <typeparam name="T">The type of object used by and returned by the function.</typeparam>
690 <member name="P:System.Security.Principal.WindowsIdentity.User">
691 <summary>Gets the security identifier (SID) for the user.</summary>
692 <returns>An object for the user.</returns>
694 <member name="T:System.Security.Principal.WindowsPrincipal">
695 <summary>Enables code to check the Windows group membership of a Windows user.</summary>
697 <member name="M:System.Security.Principal.WindowsPrincipal.#ctor(System.Security.Principal.WindowsIdentity)">
698 <summary>Initializes a new instance of the <see cref="T:System.Security.Principal.WindowsPrincipal" /> class by using the specified <see cref="T:System.Security.Principal.WindowsIdentity" /> object.</summary>
699 <param name="ntIdentity">The object from which to construct the new instance of <see cref="T:System.Security.Principal.WindowsPrincipal" />. </param>
700 <exception cref="T:System.ArgumentNullException">
701 <paramref name="ntIdentity" /> is null. </exception>
703 <member name="M:System.Security.Principal.WindowsPrincipal.IsInRole(System.Int32)">
704 <summary>Determines whether the current principal belongs to the Windows user group with the specified relative identifier (RID).</summary>
705 <returns>true if the current principal is a member of the specified Windows user group, that is, in a particular role; otherwise, false.</returns>
706 <param name="rid">The RID of the Windows user group in which to check for the principal’s membership status. </param>
708 <IPermission class="System.Security.Permissions.ReflectionPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="MemberAccess" />
711 <member name="M:System.Security.Principal.WindowsPrincipal.IsInRole(System.Security.Principal.SecurityIdentifier)">
712 <summary>Determines whether the current principal belongs to the Windows user group with the specified security identifier (SID).</summary>
713 <returns>true if the current principal is a member of the specified Windows user group; otherwise, false.</returns>
714 <param name="sid">A <see cref="T:System.Security.Principal.SecurityIdentifier" /> that uniquely identifies a Windows user group.</param>
715 <exception cref="T:System.ArgumentNullException">
716 <paramref name="sid" /> is null.</exception>
717 <exception cref="T:System.Security.SecurityException">Windows returned a Win32 error.</exception>
719 <IPermission class="System.Security.Permissions.ReflectionPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="MemberAccess" />
722 <member name="M:System.Security.Principal.WindowsPrincipal.IsInRole(System.Security.Principal.WindowsBuiltInRole)">
723 <summary>Determines whether the current principal belongs to the Windows user group with the specified <see cref="T:System.Security.Principal.WindowsBuiltInRole" />.</summary>
724 <returns>true if the current principal is a member of the specified Windows user group; otherwise, false.</returns>
725 <param name="role">One of the <see cref="T:System.Security.Principal.WindowsBuiltInRole" /> values. </param>
726 <exception cref="T:System.ArgumentException">
727 <paramref name="role" /> is not a valid <see cref="T:System.Security.Principal.WindowsBuiltInRole" /> value.</exception>
729 <IPermission class="System.Security.Permissions.ReflectionPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="MemberAccess" />