Compartir a través de


SignEvent.XDocument Propiedad

Definición

Obtiene una referencia al XDocument objeto asociado al OnSign evento.

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

Valor de propiedad

Implementaciones

Ejemplos

En el siguiente ejemplo, se establece una variable en true si XDocument se firma y en false si XDocument no se firma:

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

Comentarios

Importante: Solo se puede acceder a este miembro mediante formularios que se ejecutan en el mismo dominio que el formulario abierto actualmente o mediante formularios a los que se han concedido permisos entre dominios.

Se aplica a