共用方式為


WSTrustSerializationContext 建構函式

定義

初始化 WSTrustSerializationContext 類別的新執行個體。

多載

WSTrustSerializationContext()

初始化 WSTrustSerializationContext 類別的新執行個體。

WSTrustSerializationContext(SecurityTokenHandlerCollectionManager)

使用指定的 WSTrustSerializationContext 物件,初始化 SecurityTokenHandlerCollectionManager 類別的新執行個體。

WSTrustSerializationContext(SecurityTokenHandlerCollectionManager, SecurityTokenResolver, SecurityTokenResolver)

使用指定的 WSTrustSerializationContextSecurityTokenHandlerCollectionManagerSecurityTokenResolver 物件,初始化 SecurityTokenResolver 類別的新執行個體。

WSTrustSerializationContext()

初始化 WSTrustSerializationContext 類別的新執行個體。

public:
 WSTrustSerializationContext();
public WSTrustSerializationContext ();
Public Sub New ()

適用於

WSTrustSerializationContext(SecurityTokenHandlerCollectionManager)

使用指定的 WSTrustSerializationContext 物件,初始化 SecurityTokenHandlerCollectionManager 類別的新執行個體。

public:
 WSTrustSerializationContext(System::IdentityModel::Tokens::SecurityTokenHandlerCollectionManager ^ securityTokenHandlerCollectionManager);
public WSTrustSerializationContext (System.IdentityModel.Tokens.SecurityTokenHandlerCollectionManager securityTokenHandlerCollectionManager);
new System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext : System.IdentityModel.Tokens.SecurityTokenHandlerCollectionManager -> System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext
Public Sub New (securityTokenHandlerCollectionManager As SecurityTokenHandlerCollectionManager)

參數

securityTokenHandlerCollectionManager
SecurityTokenHandlerCollectionManager

包含 SecurityTokenHandlerCollectionManager 物件集的 SecurityTokenHandler物件,用於序列化及驗證在 WS-Trust 訊息中找到的權杖。

例外狀況

securityTokenHandlerCollectionManagernull

適用於

WSTrustSerializationContext(SecurityTokenHandlerCollectionManager, SecurityTokenResolver, SecurityTokenResolver)

使用指定的 WSTrustSerializationContextSecurityTokenHandlerCollectionManagerSecurityTokenResolver 物件,初始化 SecurityTokenResolver 類別的新執行個體。

public:
 WSTrustSerializationContext(System::IdentityModel::Tokens::SecurityTokenHandlerCollectionManager ^ securityTokenHandlerCollectionManager, System::IdentityModel::Selectors::SecurityTokenResolver ^ securityTokenResolver, System::IdentityModel::Selectors::SecurityTokenResolver ^ useKeyTokenResolver);
public WSTrustSerializationContext (System.IdentityModel.Tokens.SecurityTokenHandlerCollectionManager securityTokenHandlerCollectionManager, System.IdentityModel.Selectors.SecurityTokenResolver securityTokenResolver, System.IdentityModel.Selectors.SecurityTokenResolver useKeyTokenResolver);
new System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext : System.IdentityModel.Tokens.SecurityTokenHandlerCollectionManager * System.IdentityModel.Selectors.SecurityTokenResolver * System.IdentityModel.Selectors.SecurityTokenResolver -> System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext
Public Sub New (securityTokenHandlerCollectionManager As SecurityTokenHandlerCollectionManager, securityTokenResolver As SecurityTokenResolver, useKeyTokenResolver As SecurityTokenResolver)

參數

securityTokenHandlerCollectionManager
SecurityTokenHandlerCollectionManager

包含 SecurityTokenHandlerCollectionManager 物件集的 SecurityTokenHandler物件,用於序列化及驗證在 WS-Trust 訊息中找到的權杖。

securityTokenResolver
SecurityTokenResolver

SecurityTokenResolver 物件,會用來解析大多數 WS-Trust 訊息項目中找到的安全性權杖參考。

useKeyTokenResolver
SecurityTokenResolver

SecurityTokenResolver 物件,會用來解析 RST 訊息 wst:UseKey 項目中以及 RST 訊息 wst:RenewTarget 項目中找到的安全性權杖參考。

例外狀況

securityTokenHandlerCollectionManagernull

-或-

securityTokenResolvernull

-或-

useKeyTokenResolvernull

適用於