共用方式為


WSTrustRequestBodyWriter 建構函式

定義

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

public:
 WSTrustRequestBodyWriter(System::IdentityModel::Protocols::WSTrust::RequestSecurityToken ^ requestSecurityToken, System::IdentityModel::Protocols::WSTrust::WSTrustRequestSerializer ^ serializer, System::IdentityModel::Protocols::WSTrust::WSTrustSerializationContext ^ serializationContext);
public WSTrustRequestBodyWriter (System.IdentityModel.Protocols.WSTrust.RequestSecurityToken requestSecurityToken, System.IdentityModel.Protocols.WSTrust.WSTrustRequestSerializer serializer, System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext serializationContext);
new System.ServiceModel.Security.WSTrustRequestBodyWriter : System.IdentityModel.Protocols.WSTrust.RequestSecurityToken * System.IdentityModel.Protocols.WSTrust.WSTrustRequestSerializer * System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext -> System.ServiceModel.Security.WSTrustRequestBodyWriter
Public Sub New (requestSecurityToken As RequestSecurityToken, serializer As WSTrustRequestSerializer, serializationContext As WSTrustSerializationContext)

參數

requestSecurityToken
RequestSecurityToken

要在外寄郵件中序列化的 RequestSecurityToken 物件 (RST)。

serializer
WSTrustRequestSerializer

要用來序列化 RST 的 WSTrustRequestSerializer 物件。

serializationContext
WSTrustSerializationContext

WSTrustSerializationContext,包含序列化的內容。

例外狀況

requestSecurityTokennull

-或- serializernull

-或- serializationContextnull

適用於