SignEvent.XDocument 属性

定义

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

public:
 property Microsoft::Office::Interop::InfoPath::XDocument ^ XDocument { Microsoft::Office::Interop::InfoPath::XDocument ^ get(); };
public Microsoft.Office.Interop.InfoPath.XDocument XDocument { get; }
member this.XDocument : Microsoft.Office.Interop.InfoPath.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;
}

适用于