WSTrustRequestBodyWriter 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 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,包含序列化的內容。
例外狀況
requestSecurityToken
為 null
。
-或-
serializer
為 null
。
-或-
serializationContext
為 null
。