VerifySignature Method
Verifies the signature of the current message.
Syntax
[VB.NET] Public Sub VerifySignature()
[C#] public void VerifySignature();
Remarks
This method verifies the signature of the message.
The message will be verified using the keys specified in SignerKeys. Before verification begins the component will fire the SignatureInfo event with information about the signature including the key used to sign the message. Within this event you may use the information available to load the correct key into SignerKeys.
By default, if the signature is not valid the component throws an exception. The configuration setting RequireValidSignature may be set to False to disable this requirement. When RequireValidSignature is set to False, the Status parameter of the VerificationStatus event should be checked to determine the result of the operation.
NOTE: This method has a corresponding asynchronous version (VerifySignatureAsync) for use in the Xamarin environment.