Transform.Context 属性
定义
获取或设置一个 XmlElement 对象,该对象表示当前 Transform 对象运行的文档上下文。Gets or sets an XmlElement object that represents the document context under which the current Transform object is running.
public:
property System::Xml::XmlElement ^ Context { System::Xml::XmlElement ^ get(); void set(System::Xml::XmlElement ^ value); };
public System.Xml.XmlElement Context { get; set; }
[System.Runtime.InteropServices.ComVisible(false)]
public System.Xml.XmlElement Context { get; set; }
member this.Context : System.Xml.XmlElement with get, set
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.Context : System.Xml.XmlElement with get, set
Public Property Context As XmlElement
属性值
一个 XmlElement 对象,表示当前 Transform 对象运行的文档上下文。An XmlElement object that represents the document context under which the current Transform object is running.
- 属性
注解
签名文档时, Context 属性表示传递给 SignedXml 构造函数的值。When signing a document, the Context property represents the value passed to the SignedXml constructor. 在验证文档时, Context 属性表示 Signature 对象。When verifying a document, the Context property represents Signature object.
此 Context 属性在签名计算和检查期间自动设置,但在调用转换之前。The Context property is set automatically during signature computation and checking, but before transforms are invoked.