SecurityTokenHandlerCollection.WriteToken SecurityTokenHandlerCollection.WriteToken SecurityTokenHandlerCollection.WriteToken SecurityTokenHandlerCollection.WriteToken Method

정의

지정된 보안 토큰을 serialize합니다.Serializes the specified security token.

오버로드

WriteToken(SecurityToken) WriteToken(SecurityToken) WriteToken(SecurityToken) WriteToken(SecurityToken)

지정된 보안 토큰을 문자열로 serialize합니다.Serializes the specified security token to a string.

WriteToken(XmlWriter, SecurityToken) WriteToken(XmlWriter, SecurityToken) WriteToken(XmlWriter, SecurityToken) WriteToken(XmlWriter, SecurityToken)

지정된 보안 토큰을 XML로 serialize합니다.Serializes the specified security token to XML.

WriteToken(SecurityToken) WriteToken(SecurityToken) WriteToken(SecurityToken) WriteToken(SecurityToken)

지정된 보안 토큰을 문자열로 serialize합니다.Serializes the specified security token to a string.

public:
 System::String ^ WriteToken(System::IdentityModel::Tokens::SecurityToken ^ token);
public string WriteToken (System.IdentityModel.Tokens.SecurityToken token);
member this.WriteToken : System.IdentityModel.Tokens.SecurityToken -> string
Public Function WriteToken (token As SecurityToken) As String

매개 변수

token
SecurityToken SecurityToken SecurityToken SecurityToken

serialize할 토큰입니다.The token to serialize.

반환

토큰에서 serialize된 문자열입니다.The string serialized from the token.

예외

컬렉션에 지정된 토큰을 serialize할 수 있는 처리기가 없습니다.The collection does not contain a handler capable of serializing the specified token.

WriteToken(XmlWriter, SecurityToken) WriteToken(XmlWriter, SecurityToken) WriteToken(XmlWriter, SecurityToken) WriteToken(XmlWriter, SecurityToken)

지정된 보안 토큰을 XML로 serialize합니다.Serializes the specified security token to XML.

public:
 void WriteToken(System::Xml::XmlWriter ^ writer, System::IdentityModel::Tokens::SecurityToken ^ token);
public void WriteToken (System.Xml.XmlWriter writer, System.IdentityModel.Tokens.SecurityToken token);
member this.WriteToken : System.Xml.XmlWriter * System.IdentityModel.Tokens.SecurityToken -> unit
Public Sub WriteToken (writer As XmlWriter, token As SecurityToken)

매개 변수

writer
XmlWriter XmlWriter XmlWriter XmlWriter

XML 작성기입니다.The XML writer.

token
SecurityToken SecurityToken SecurityToken SecurityToken

serialize할 토큰입니다.The token to serialize.

예외

tokennull입니다.token is null.

또는-or- writernull인 경우writer is null.

컬렉션에 지정된 토큰을 serialize할 수 있는 처리기가 없습니다.The collection does not contain a handler capable of serializing the specified token.

적용 대상