Signatures.Create Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new SignatureObject object.
public:
Microsoft::Office::Interop::InfoPath::SemiTrust::SignatureObject ^ Create();
public Microsoft.Office.Interop.InfoPath.SemiTrust.SignatureObject Create ();
abstract member Create : unit -> Microsoft.Office.Interop.InfoPath.SemiTrust.SignatureObject
Public Function Create () As SignatureObject
Returns
A SignatureObject object.
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.<span class="label">Create</span>();
signature.Sign();
}
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.