Share via


Signatures.Create method

Creates a new SignatureObject object.

Namespace:  Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly:  Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.dll)

Syntax

'Declaration
Function Create As SignatureObject
'Usage
Dim instance As Signatures
Dim returnValue As SignatureObject

returnValue = instance.Create()
SignatureObject Create()

Return value

Type: Microsoft.Office.Interop.InfoPath.SemiTrust.SignatureObject
A SignatureObject object.

Remarks

This method can be called only from the OnSignevent.

Important

This member can be accessed only by forms opened from a form template that has been configured to run with full trust using the Security and Trust category of the Form Options dialog box. This member requires full trust for the immediate caller and cannot be used by partially trusted code. For more information, see "Using Libraries from Partially Trusted Code" on MSDN.

Examples

In the following example, a Signature object is added to SignaturesCollection collection of the form

[InfoPathEventHandler(EventType=InfoPathEventType.OnSign)]
public void OnSign(SignEvent e)
 {
  Signature signature = e.SignedDataBlock.Signatures.Create();
  signature.Sign();
 }

See also

Reference

Signatures interface

Signatures members

Microsoft.Office.Interop.InfoPath.SemiTrust namespace