Sign an XML document according to the XSPP.

Namespace: Nehta.VendorLibrary.SM.SMD
Assembly: Nehta.VendorLibrary.SM.SMD (in Nehta.VendorLibrary.SM.SMD.dll) Version: 1.0.5.0 (1.0.5.0)

Syntax

C#
public static XmlDocument XspSign(
	this XmlDocument document,
	X509Certificate2 signingCert
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function XspSign ( _
	document As XmlDocument, _
	signingCert As X509Certificate2 _
) As XmlDocument
Visual C++
[ExtensionAttribute]
public:
static XmlDocument^ XspSign(
	XmlDocument^ document, 
	X509Certificate2^ signingCert
)

Parameters

document
Type: System.Xml..::..XmlDocument
The XML document to be signed.
signingCert
Type: System.Security.Cryptography.X509Certificates..::..X509Certificate2
The certificate to sign the XML document with.

Return Value

The signed XML document.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type XmlDocument. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also