WindowsClaimSet 建構函式

定義

初始化 WindowsClaimSet 類別的新執行個體。Initializes a new instance of the WindowsClaimSet class.

多載

WindowsClaimSet(WindowsIdentity)

使用 WindowsClaimSet 物件指定的 Windows 使用者身分識別,初始化 WindowsIdentity 類別的新執行個體。Initializes a new instance of the WindowsClaimSet class by using the Windows user identity specified by the WindowsIdentity object.

WindowsClaimSet(WindowsIdentity, Boolean)

使用 WindowsClaimSet 物件指定的 Windows 使用者身分識別,初始化 WindowsIdentity 類別的新執行個體。Initializes a new instance of the WindowsClaimSet class by using the Windows user identity specified by the WindowsIdentity object.

WindowsClaimSet(WindowsIdentity, DateTime)

使用 WindowsClaimSet 物件指定的 Windows 使用者身分識別,初始化 WindowsIdentity 類別的新執行個體。Initializes a new instance of the WindowsClaimSet class by using the Windows user identity specified by the WindowsIdentity object.

WindowsClaimSet(WindowsIdentity, Boolean, DateTime)

使用 WindowsClaimSet 物件指定的 Windows 使用者身分識別,初始化 WindowsIdentity 類別的新執行個體。Initializes a new instance of the WindowsClaimSet class by using the Windows user identity specified by the WindowsIdentity object.

WindowsClaimSet(WindowsIdentity, String, Boolean, DateTime)

使用 WindowsClaimSet 物件指定的 Windows 使用者身分識別,初始化 WindowsIdentity 類別的新執行個體。Initializes a new instance of the WindowsClaimSet class by using the Windows user identity specified by the WindowsIdentity object.

WindowsClaimSet(WindowsIdentity)

使用 WindowsClaimSet 物件指定的 Windows 使用者身分識別,初始化 WindowsIdentity 類別的新執行個體。Initializes a new instance of the WindowsClaimSet class by using the Windows user identity specified by the WindowsIdentity object.

public:
 WindowsClaimSet(System::Security::Principal::WindowsIdentity ^ identity);
public WindowsClaimSet (System.Security.Principal.WindowsIdentity identity);
new System.IdentityModel.Claims.WindowsClaimSet : System.Security.Principal.WindowsIdentity -> System.IdentityModel.Claims.WindowsClaimSet
Public Sub New (identity As WindowsIdentity)

參數

windowsIdentity
WindowsIdentity

指定 Windows 身分識別的 WindowsIdentityA WindowsIdentity that specifies the Windows identity.

備註

此宣告表示該使用者所屬之 Windows 群組已新增至宣告集。The claims representing the Windows groups to which this user belongs are added to the claim set.

到期時間設定為 10 小時。The expiration time is set to 10 hours.

WindowsClaimSet(WindowsIdentity, Boolean)

使用 WindowsClaimSet 物件指定的 Windows 使用者身分識別,初始化 WindowsIdentity 類別的新執行個體。Initializes a new instance of the WindowsClaimSet class by using the Windows user identity specified by the WindowsIdentity object.

public:
 WindowsClaimSet(System::Security::Principal::WindowsIdentity ^ identity, bool includeWindowsGroups);
public WindowsClaimSet (System.Security.Principal.WindowsIdentity identity, bool includeWindowsGroups);
new System.IdentityModel.Claims.WindowsClaimSet : System.Security.Principal.WindowsIdentity * bool -> System.IdentityModel.Claims.WindowsClaimSet
Public Sub New (identity As WindowsIdentity, includeWindowsGroups As Boolean)

參數

windowsIdentity
WindowsIdentity

指定 Windows 身分識別的 WindowsIdentityA WindowsIdentity that specifies the Windows identity.

includeWindowsGroups
Boolean

若包含表示該使用者所屬之 Windows 群組的宣告,則為 true;否則為 falsetrue to include the claims representing the Windows groups to which this user belongs; otherwise, false.

備註

到期時間設定為 10 小時。The expiration time is set to 10 hours.

WindowsClaimSet(WindowsIdentity, DateTime)

使用 WindowsClaimSet 物件指定的 Windows 使用者身分識別,初始化 WindowsIdentity 類別的新執行個體。Initializes a new instance of the WindowsClaimSet class by using the Windows user identity specified by the WindowsIdentity object.

public:
 WindowsClaimSet(System::Security::Principal::WindowsIdentity ^ identity, DateTime expirationTime);
public WindowsClaimSet (System.Security.Principal.WindowsIdentity identity, DateTime expirationTime);
new System.IdentityModel.Claims.WindowsClaimSet : System.Security.Principal.WindowsIdentity * DateTime -> System.IdentityModel.Claims.WindowsClaimSet
Public Sub New (identity As WindowsIdentity, expirationTime As DateTime)

參數

windowsIdentity
WindowsIdentity

指定 Windows 身分識別的 WindowsIdentityA WindowsIdentity that specifies the Windows identity.

expirationTime
DateTime

指定宣告集之到期時間的 DateTimeA DateTime that specifies the expiration time for the claim set.

WindowsClaimSet(WindowsIdentity, Boolean, DateTime)

使用 WindowsClaimSet 物件指定的 Windows 使用者身分識別,初始化 WindowsIdentity 類別的新執行個體。Initializes a new instance of the WindowsClaimSet class by using the Windows user identity specified by the WindowsIdentity object.

public:
 WindowsClaimSet(System::Security::Principal::WindowsIdentity ^ identity, bool includeWindowsGroups, DateTime expirationTime);
public WindowsClaimSet (System.Security.Principal.WindowsIdentity identity, bool includeWindowsGroups, DateTime expirationTime);
new System.IdentityModel.Claims.WindowsClaimSet : System.Security.Principal.WindowsIdentity * bool * DateTime -> System.IdentityModel.Claims.WindowsClaimSet
Public Sub New (identity As WindowsIdentity, includeWindowsGroups As Boolean, expirationTime As DateTime)

參數

windowsIdentity
WindowsIdentity

指定 Windows 身分識別的 WindowsIdentityA WindowsIdentity that specifies the Windows identity.

includeWindowsGroups
Boolean

若包含該使用者所屬的 Windows 群組,則為 true;否則為 falsetrue to include the Windows groups to which this user belongs; otherwise, false.

expirationTime
DateTime

指定宣告集之到期時間的 DateTimeA DateTime that specifies the expiration time for the claim set.

WindowsClaimSet(WindowsIdentity, String, Boolean, DateTime)

使用 WindowsClaimSet 物件指定的 Windows 使用者身分識別,初始化 WindowsIdentity 類別的新執行個體。Initializes a new instance of the WindowsClaimSet class by using the Windows user identity specified by the WindowsIdentity object.

public:
 WindowsClaimSet(System::Security::Principal::WindowsIdentity ^ windowsIdentity, System::String ^ authenticationType, bool includeWindowsGroups, DateTime expirationTime);
public WindowsClaimSet (System.Security.Principal.WindowsIdentity windowsIdentity, string authenticationType, bool includeWindowsGroups, DateTime expirationTime);
new System.IdentityModel.Claims.WindowsClaimSet : System.Security.Principal.WindowsIdentity * string * bool * DateTime -> System.IdentityModel.Claims.WindowsClaimSet

參數

windowsIdentity
WindowsIdentity

指定 Windows 身分識別的 WindowsIdentityA WindowsIdentity that specifies the Windows identity.

authenticationType
String

Windows 識別的驗證類型。The authentication type for the Windows Identity.

includeWindowsGroups
Boolean

若包含該使用者所屬的 Windows 群組,則為 true;否則為 falsetrue to include the Windows groups to which this user belongs; otherwise, false.

expirationTime
DateTime

指定宣告集之到期時間的 DateTimeA DateTime that specifies the expiration time for the claim set.

適用於