Windowsidentity.getcurrent returns iusr
Skip to main content. This browser is no longer supported. Download Microsoft Edge More info. Contents Exit focus mode. Windows Identity Class Reference Is this page helpful? Please rate your experience Yes No. Any additional feedback? Namespace: System.
Principal Assembly: System. SerializableAttribute ComVisibleAttribute. Important This type implements the IDisposable interface. In this article. WindowsIdentity IntPtr. WindowsIdentity IntPtr, String. WindowsIdentity String. WindowsIdentity String, String. WindowsIdentity WindowsIdentity. Inherited from ClaimsIdentity. Gets or sets the identity of the calling party that was granted delegation rights. Gets or sets the token that was used to create this claims identity.
Gets the claims associated with this claims identity. Gets a value indicating whether the user has been authenticated by Windows. Gets or sets the label for this claims identity.
AddClaim Claim. Adds a single claim to this claims identity. Adds a list of claims to this claims identity. CreateClaim BinaryReader. Dispose Boolean. Equals Object. Determines whether the specified object is equal to the current object. Inherited from Object. Retrieves all of the claims that are matched by the specified predicate. FindAll String. Returns a WindowsIdentity object that represents the current Windows user, using the specified desired token access level.
Returns a WindowsIdentity object that represents the Windows identity for either the thread or the process, depending on the value of the ifImpersonating parameter. The desiredAccess parameter specifies an access mask that identifies the requested types of access to the access token.
These requested access types are compared with the token's discretionary access control list DACL to determine which types of access are granted or denied.
If ifImpersonating is true and the thread is not impersonating, the returned WindowsIdentity object has no value.
If ifImpersonating is false and the thread is impersonating, the WindowsIdentity for the thread is returned. If ifImpersonating is false and the thread is not impersonating, the WindowsIdentity for the process is returned. The following code shows the use of the GetCurrent method to return a WindowsIdentity object that represents the current Windows user.
This code example is part of a larger example provided for the WindowsIdentity class. Pranav Singh Peng Peng 94 1 1 silver badge 8 8 bronze badges. Add a comment. Active Oldest Votes. You misunderstand authentication and impersonation, Property Value Type: System. Lex Li Lex Li Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog.
Podcast Making Agile work for data science.
0コメント