Saml2Assertion.CanWriteSourceData 属性

Indicates whether this assertion was deserialized from XML source and can re-emit the XML data unchanged.

命名空间: Microsoft.IdentityModel.Tokens.Saml2
程序集: Microsoft.IdentityModel(microsoft.identitymodel.dll 中)

用法

    Dim instance As Saml2Assertion
Dim value As Boolean

value = instance.CanWriteSourceData

语法

声明
Public Overridable ReadOnly Property CanWriteSourceData As Boolean
public virtual bool CanWriteSourceData { get; }
public:
virtual property bool CanWriteSourceData {
    bool get ();
}
/** @property */
public boolean get_CanWriteSourceData ()
public function get CanWriteSourceData () : boolean

属性值

true if this assertion can re-emit the XML source data unchanged; otherwise, false.

备注

The default implementation preserves the source data when read using Saml2AssertionSerializer.ReadAssertion and is willing to re-emit the original data as long as the Id has not changed from the time that assertion was read.

Note that it is vitally important that SAML assertions with different data have different IDs. If implementing a scheme whereby an assertion "template" is loaded and certain bits of data are filled in, the Id must be changed.

线程安全

此类型的任何公共静态(在 Visual Basic 中为 Shared)成员都是线程安全的。但不能保证任何实例成员是线程安全的。

平台

开发平台

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

请参见

参考

Saml2Assertion 类
Saml2Assertion 成员
Microsoft.IdentityModel.Tokens.Saml2 命名空间