asp.net.ph

WindowsIdentity Class

System.Security.Principal Namespace


Represents a Windows user.

WindowsIdentity Class Members

Collapse   Constructors

Visibility Constructor Parameters
public WindowsIdentity ( IntPtr userToken )
public WindowsIdentity ( IntPtr userToken , String type )
public WindowsIdentity ( IntPtr userToken , String type , WindowsAccountType acctType )
public WindowsIdentity ( IntPtr userToken , String type , WindowsAccountType acctType , Boolean isAuthenticated )
public WindowsIdentity ( String sUserPrincipalName )
public WindowsIdentity ( String sUserPrincipalName , String type )
public WindowsIdentity ( SerializationInfo info , StreamingContext context )

Collapse   Fields

Visibility Name Type
public static const DefaultIssuer String

Collapse   Properties

Visibility Name Value Type Accessibility
public AccessToken SafeAccessTokenHandle [ Get ]
public AuthenticationType String [ Get ]
public Claims IEnumerable`1 [ Get ]
public DeviceClaims IEnumerable`1 [ Get ]
public Groups IdentityReferenceCollection [ Get ]
public ImpersonationLevel TokenImpersonationLevel [ Get ]
public IsAnonymous Boolean [ Get ]
public IsAuthenticated Boolean [ Get ]
public IsGuest Boolean [ Get ]
public IsSystem Boolean [ Get ]
public Name String [ Get ]
public Owner SecurityIdentifier [ Get ]
public Token IntPtr [ Get ]
public User SecurityIdentifier [ Get ]
public UserClaims IEnumerable`1 [ Get ]

Collapse   Methods

Visibility Name Parameters Return Type
public Clone ( ) ClaimsIdentity
protected Dispose ( Boolean disposing ) Void
public Dispose ( ) Void
public static GetAnonymous ( ) WindowsIdentity
public static GetCurrent ( ) WindowsIdentity
public static GetCurrent ( TokenAccessLevels desiredAccess ) WindowsIdentity
public static GetCurrent ( Boolean ifImpersonating ) WindowsIdentity
public static Impersonate ( IntPtr userToken ) WindowsImpersonationContext
public Impersonate ( ) WindowsImpersonationContext
public static RunImpersonated ( SafeAccessTokenHandle safeAccessTokenHandle , Func`1 func ) T
public static RunImpersonated ( SafeAccessTokenHandle safeAccessTokenHandle , Action action ) Void

Remarks

Call the GetCurrent method to create a WindowsIdentity object that represents the current user.

See Also

WindowsPrincipal Class Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph