DataObject Methods

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

The DataObject type exposes the following members.

Methods

  Name Description
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GetData(String) Retrieves a data object in a specified format; the data format is specified by a string.
Public method GetData(Type) Retrieves a data object in a specified format; the data format is specified by a Type object. Always throws an exception.
Public method GetData(String, Boolean) Retrieves a data object in a specified format, optionally converting the data to the specified format. Always throws an exception.
Public method GetDataPresent(String) Checks to see whether the data is available in, or can be converted to, a specified format; the data format is specified by a string.
Public method GetDataPresent(Type) Checks whether the data is available in, or can be converted to, a specified format. The data format is specified by a Type object. Always throws an exception.
Public method GetDataPresent(String, Boolean) Checks whether the data is available in, or can be converted to, a specified format. A Boolean flag indicates whether to check if the data can be converted to the specified format, if it is not available in that format. Always throws an exception.
Public method GetFormats() Returns a list of all formats that the data in this data object is stored in, or can be converted to.
Public method GetFormats(Boolean) Returns a list of all formats that the data in this data object is stored in. A Boolean flag indicates whether to also include formats that the data can be automatically converted to. Always throws an exception.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method SetData(Object) Stores the specified data in this data object and automatically converts the data format from the source object type. Always throws an exception.
Public method SetData(String, Object) Stores the specified data in this data object, along with one or more specified data formats. The data format is specified by a string. Always throws an exception.
Public method SetData(Type, Object) Stores the specified data in this data object, together with one or more specified data formats. The data format is specified by a Type class. Always throws an exception.
Public method SetData(String, Object, Boolean) Stores the specified data in this data object, together with one or more specified data formats. This overload includes a Boolean flag to indicate whether the data may be converted to another format on retrieval. Always throws an exception.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top