Saml2Assertion.CanWriteSourceData 属性
定义
获取指示此声明是否已从 XML 源反序列化,并且可以按原样再次发出 XML 数据的值。Gets a value that indicates whether this assertion was deserialized from XML source and can re-emit the XML data unchanged.
public:
virtual property bool CanWriteSourceData { bool get(); };
public virtual bool CanWriteSourceData { get; }
member this.CanWriteSourceData : bool
Public Overridable ReadOnly Property CanWriteSourceData As Boolean
属性值
如果断言可以按原样再次发出 XML 源数据,则为 true ;否则为 false。true if this assertion can re-emit the XML source data unchanged; otherwise, false.
注解
默认实现使用方法在读取时保留源数据 ReadAssertion ,并且可以在该 Id 属性在读取断言时未发生更改的情况下重新发出原始数据。The default implementation preserves the source data when read using the ReadAssertion method and can re-emit the original data as long as the Id property has not changed from the time that assertion was read.
重要
具有不同数据的 SAML 断言具有不同的 Id 是非常重要的。It is very important that SAML assertions with different data have different IDs. 如果实现一个方案,其中加载了断言 "模板" 并填充了某些数据位,则必须更改该 Id。If implementing a scheme whereby an assertion "template" is loaded and certain bits of data are filled in, the Id must be changed.