Freigeben über


SignEvent.XDocument Eigenschaft

Definition

Ruft einen Verweis auf das -Objekt ab, das XDocument dem OnSign Ereignis zugeordnet ist.

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

Eigenschaftswert

Implementiert

Hinweise

Im folgenden Beispiel wird eine Variable auf true festgelegt, wenn das XDocument-Objekt signiert ist. Sie wird auf false festgelegt, wenn das XDocument-Objekt nicht signiert ist:

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;
}

Gilt für: