SspiSecurityToken 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 SspiSecurityToken 類別的新執行個體。
多載
SspiSecurityToken(NetworkCredential, Boolean, Boolean) |
初始化 SspiSecurityToken 類別的新執行個體。 |
SspiSecurityToken(TokenImpersonationLevel, Boolean, NetworkCredential) |
初始化 SspiSecurityToken 類別的新執行個體。 |
SspiSecurityToken(NetworkCredential, Boolean, Boolean)
初始化 SspiSecurityToken 類別的新執行個體。
public:
SspiSecurityToken(System::Net::NetworkCredential ^ networkCredential, bool extractGroupsForWindowsAccounts, bool allowUnauthenticatedCallers);
public SspiSecurityToken (System.Net.NetworkCredential networkCredential, bool extractGroupsForWindowsAccounts, bool allowUnauthenticatedCallers);
new System.ServiceModel.Security.Tokens.SspiSecurityToken : System.Net.NetworkCredential * bool * bool -> System.ServiceModel.Security.Tokens.SspiSecurityToken
Public Sub New (networkCredential As NetworkCredential, extractGroupsForWindowsAccounts As Boolean, allowUnauthenticatedCallers As Boolean)
參數
- networkCredential
- NetworkCredential
- extractGroupsForWindowsAccounts
- Boolean
如果擷取 Windows 帳戶所屬的群組,則為 true
,否則為 false
。
- allowUnauthenticatedCallers
- Boolean
如果允許未經驗證 (匿名) 的呼叫端,則為 true
,否則為 false
。
適用於
SspiSecurityToken(TokenImpersonationLevel, Boolean, NetworkCredential)
初始化 SspiSecurityToken 類別的新執行個體。
public:
SspiSecurityToken(System::Security::Principal::TokenImpersonationLevel impersonationLevel, bool allowNtlm, System::Net::NetworkCredential ^ networkCredential);
public SspiSecurityToken (System.Security.Principal.TokenImpersonationLevel impersonationLevel, bool allowNtlm, System.Net.NetworkCredential networkCredential);
new System.ServiceModel.Security.Tokens.SspiSecurityToken : System.Security.Principal.TokenImpersonationLevel * bool * System.Net.NetworkCredential -> System.ServiceModel.Security.Tokens.SspiSecurityToken
Public Sub New (impersonationLevel As TokenImpersonationLevel, allowNtlm As Boolean, networkCredential As NetworkCredential)
參數
- impersonationLevel
- TokenImpersonationLevel
- allowNtlm
- Boolean
如果允許 NTLM 驗證,則為 true
,否則為 false
。
- networkCredential
- NetworkCredential