Represents the <Signature> element of an XML signature.
Assembly: System.Security (in System.Security.dll)
Thetype exposes the following members.
|AddObject||Adds a DataObject to the list of objects to be signed.|
|Equals(Object)||Determines whether the specified object is equal to the current object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Serves as the default hash function. (Inherited from Object.)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|GetXml||Returns the XML representation of the .|
|LoadXml||Loads a state from an XML element.|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
The class represents the <Signature> element of an XML signature defined by the XML digital signature specification. The <Signature> element is the root element of an XML digital signature. The SignedInfo, SignatureValue, KeyInfo, and ObjectList properties encapsulate the subelements of the <Signature> element.
For more information about the <Signature> element, see the W3C specification at www.w3.org/TR/xmldsig-core/.
The HostProtectionAttribute attribute applied to this type or member has the following Resources property value: MayLeakOnAbort. The HostProtectionAttribute does not affect desktop applications (which are typically started by double-clicking an icon, typing a command, or entering a URL in a browser). For more information, see the HostProtectionAttribute class or SQL Server Programming and Host Protection Attributes.
The following code example uses the class with the SignedXml class to sign and verify an XML document using an envelope signature.
The following code example uses the class with the SignedXml class to sign an object and verify an XML document using a detached signature.