SignatureLine.Sign Method
Displays the Sign dialog box with the specified signature image or stamp, and the suggested signer's name, title, and e-mail address.
Namespace: Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly: Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.dll)
Syntax
'Declaration
Function Sign ( _
bstrImageURL As String, _
bstrSuggestedSigner As String, _
bstrSuggestedSignerTitle As String, _
bstrSuggestedSignerEmailAddress As String _
) As Boolean
'Usage
Dim instance As SignatureLine
Dim bstrImageURL As String
Dim bstrSuggestedSigner As String
Dim bstrSuggestedSignerTitle As String
Dim bstrSuggestedSignerEmailAddress As String
Dim returnValue As Boolean
returnValue = instance.Sign(bstrImageURL, _
bstrSuggestedSigner, bstrSuggestedSignerTitle, _
bstrSuggestedSignerEmailAddress)
bool Sign(
string bstrImageURL,
string bstrSuggestedSigner,
string bstrSuggestedSignerTitle,
string bstrSuggestedSignerEmailAddress
)
Parameters
bstrImageURL
Type: System.StringThe path to the signature or stamp image to display in the control.
bstrSuggestedSigner
Type: System.StringThe name of the suggested signer.
bstrSuggestedSignerTitle
Type: System.StringThe title of the suggested signer.
bstrSuggestedSignerEmailAddress
Type: System.StringThe e-mail address of the suggested signer.
Return Value
Type: System.Boolean
true if the signing operation succeeds; otherwise, false.
Remarks
The values for all of the parameters of the Sign(String, String, String, String) method are optional. To omit any parameter, pass a null reference (Nothing in Visual Basic) for that parameter. You can also pass String.Empty for the bstrSuggestedSigner, bstrSuggestedSignerTitle, and bstrSuggestedSignerEmail parameters. If you pass a null reference (Nothing in Visual Basic) or String.Empty for a parameter and the value of the corresponding property was previously set programmatically or in the Signature Line control at design time, that value will be used when the form or set of data is signed.
This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.