NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

IDataObject.SetData (String, Boolean, Object)

Stores the specified data and its associated format in this instance, using autoConvert to specify whether the data can be converted to another format.

[Visual Basic]
Overloads Sub SetData( _
   ByVal format As String, _
   ByVal autoConvert As Boolean, _
   ByVal data As Object _
)
[C#]
void SetData(
   string format,
   bool autoConvert,
   object data
);
[C++]
void SetData(
   String* format,
   bool autoConvert,
   Object* data
) = 0;
[JScript]
function SetData(
   format : String,
   autoConvert : Boolean,
   data : Object
);

Parameters

format
The format associated with the data. See DataFormats for predefined formats.
autoConvert
true to allow the data to be converted to another format; otherwise, false.
data
The data to store.

Remarks

If you do not know the format of the target application, you can store data in multiple formats using this method.

For an implementation of this method, see SetData.

See Also

IDataObject Interface | IDataObject Members | System.WinForms Namespace | IDataObject.SetData Overload List | GetData | GetDataPresent | SetData