SecurityTokenSerializer.WriteTokenCore(XmlWriter, SecurityToken) 方法
定义
使用指定的 XML 编写器编写指定的安全令牌。Writes the specified security token using the specified XML writer. 供基类调用。Called by the base class.
protected:
abstract void WriteTokenCore(System::Xml::XmlWriter ^ writer, System::IdentityModel::Tokens::SecurityToken ^ token);
protected abstract void WriteTokenCore (System.Xml.XmlWriter writer, System.IdentityModel.Tokens.SecurityToken token);
abstract member WriteTokenCore : System.Xml.XmlWriter * System.IdentityModel.Tokens.SecurityToken -> unit
Protected MustOverride Sub WriteTokenCore (writer As XmlWriter, token As SecurityToken)
参数
- token
- SecurityToken
表示要编写的安全令牌的 SecurityToken。A SecurityToken that represents the security token to write.
例外
注解
从 SecurityTokenSerializer 类派生的类必须重写 WriteTokenCore(XmlWriter, SecurityToken) 方法。Classes that derive from the SecurityTokenSerializer class must override the WriteTokenCore(XmlWriter, SecurityToken) method. WriteToken(XmlWriter, SecurityToken) 方法调用 WriteTokenCore(XmlWriter, SecurityToken) 方法。The WriteToken(XmlWriter, SecurityToken) method calls the WriteTokenCore(XmlWriter, SecurityToken) method.