DataObject Class

 

Represents the object element of an XML signature that holds data to be signed.

Namespace:   System.Security.Cryptography.Xml
Assembly:  System.Security (in System.Security.dll)

System.Object
  System.Security.Cryptography.Xml.DataObject

[<HostProtectionAttribute(SecurityAction.LinkDemand, MayLeakOnAbort = true)>]
type DataObject = class end

NameDescription
System_CAPS_pubmethodDataObject()

Initializes a new instance of the DataObject class.

System_CAPS_pubmethodDataObject(String, String, String, XmlElement)

Initializes a new instance of the DataObject class with the specified identification, MIME type, encoding, and data.

NameDescription
System_CAPS_pubpropertyData

Gets or sets the data value of the current DataObject object.

System_CAPS_pubpropertyEncoding

Gets or sets the encoding of the current DataObject object.

System_CAPS_pubpropertyId

Gets or sets the identification of the current DataObject object.

System_CAPS_pubpropertyMimeType

Gets or sets the MIME type of the current DataObject object.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodGetXml()

Returns the XML representation of the DataObject object.

System_CAPS_pubmethodLoadXml(XmlElement)

Loads a DataObject state from an XML element.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

Use the DataObject class to store information or metadata directly in an XML signature. For example, you can store the signature generation date or the signer's identity. The DataObject class may or may not be covered by the XML signature.

The class corresponds to the <Object> element in the World Wide Web Consortium (W3C) specification for XML Signatures. For more information about the W3C specification, see http://www.w3.org/TR/xmldsig-core/.

The following code example demonstrates how to generate an enveloping XML signature.

No code example is currently available or this language may not be supported.

The following code example demonstrates how to check an XML signature.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: