This documentation is archived and is not being maintained.
WindowsSecurityToken::Initialize Method (String, String, DateTime, DateTime, WindowsIdentity, Boolean)
Visual Studio 2010
Initializes a new instance of the WindowsSecurityToken class.
Assembly: System.IdentityModel (in System.IdentityModel.dll)
protected: void Initialize( String^ id, String^ authenticationType, DateTime effectiveTime, DateTime expirationTime, WindowsIdentity^ windowsIdentity, bool clone )
Parameters
- id
- Type: System::String
A unique identifier for the security token.
- authenticationType
- Type: System::String
The authentication type for the security token.
- effectiveTime
- Type: System::DateTime
A [System.DateTime] that represents the instant in time at which this security token is first valid.
- expirationTime
- Type: System::DateTime
A DateTime that represents the last instant in time at which this security token is valid.
- windowsIdentity
- Type: System.Security.Principal::WindowsIdentity
Represents a Windows user.
- clone
- Type: System::Boolean
true to create a WindowsIdentity object that is identical to the windowsIdentity parameter and assign that to the WindowsIdentity property; otherwise, assign the value of the windowsIdentity parameter to the WindowsIdentity property.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: