WSTrustFeb2005ResponseSerializer.WriteXmlElement(XmlWriter, String, Object, RequestSecurityTokenResponse, WSTrustSerializationContext) 方法
定义
将指定的 RSTR 元素写入该输出流。Writes the specified RSTR element to the outgoing stream. 基类方法的重写。Override of the base class method.
public:
override void WriteXmlElement(System::Xml::XmlWriter ^ writer, System::String ^ elementName, System::Object ^ elementValue, System::IdentityModel::Protocols::WSTrust::RequestSecurityTokenResponse ^ rstr, System::IdentityModel::Protocols::WSTrust::WSTrustSerializationContext ^ context);
public override void WriteXmlElement (System.Xml.XmlWriter writer, string elementName, object elementValue, System.IdentityModel.Protocols.WSTrust.RequestSecurityTokenResponse rstr, System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext context);
override this.WriteXmlElement : System.Xml.XmlWriter * string * obj * System.IdentityModel.Protocols.WSTrust.RequestSecurityTokenResponse * System.IdentityModel.Protocols.WSTrust.WSTrustSerializationContext -> unit
Public Overrides Sub WriteXmlElement (writer As XmlWriter, elementName As String, elementValue As Object, rstr As RequestSecurityTokenResponse, context As WSTrustSerializationContext)
参数
- writer
- XmlWriter
RSTR应被序列化的 XmlWriter 对象.The XmlWriter object to which the RSTR is being serialized.
- elementName
- String
要编写的元素的本地名称。The local name of the element to be written.
- elementValue
- Object
元素的值。The value of the element.
将要反序列化的 RequestSecurityTokenResponse 对象。The RequestSecurityTokenResponse object that is being serialized.
- context
- WSTrustSerializationContext
一个 WSTrustSerializationContext,包含当前的序列化上下文。A WSTrustSerializationContext that contains the current serialization context.
例外
rstr 为 null。rstr is null.
或-or-
writer 为 null。writer is null.
或-or-
context 为 null。context is null.
elementName 为 null 或为空字符串。elementName is null or an empty string.