SignEvent.XDocument 属性

定义

获取对 XDocumentOnSign 事件关联的 对象的引用。

public:
 property Microsoft::Office::Interop::InfoPath::SemiTrust::XDocument ^ XDocument { Microsoft::Office::Interop::InfoPath::SemiTrust::XDocument ^ get(); };
public Microsoft.Office.Interop.InfoPath.SemiTrust.XDocument XDocument { get; }
member this.XDocument : Microsoft.Office.Interop.InfoPath.SemiTrust.XDocument
Public ReadOnly Property XDocument As XDocument

属性值

实现

示例

在以下示例中,如果 XDocument 已签名,则将变量设置为 true,如果 XDocument 尚未签名,则将变量设置为 false

public void OnSign(SignEvent e)
{
 Signature mySignedData = e.SignedDataBlock.Signatures.Create();
 mySignedData.Sign();
 bool IsSignedDoc = e.<span class="label">XDocument</span>.IsSigned;
 e.ReturnStatus = IsSignedDoc;
}

注解

重要提示:此成员只能由与当前打开的窗体在同一域中运行的表单访问,或者由已授予跨域权限的表单访问。

适用于