

The autoconvert parameter is set to false to filter out auto-convertible data formats, DataObject dataObject = new DataObject("Some string data to store.")
#Visual studio studio 2013 getdata code
The following example code uses the GetDataPresent(String, Boolean) method to first check if a specified data format is available natively (auto-convertible data formats are filtered) if the specified format is available, the example retrieves the data by using the GetData(String) method. ' If the desired data format is present, use one of the GetData methods to retrieve theĭata = Tr圜ast(dataObject.GetData(desiredFormat), Byte()) If dataObject.GetDataPresent(desiredFormat) Then ' This particular overload of GetDataPresent looks for both native and auto-convertible ' Use the GetDataPresent method to check for the presence of a desired data format. If the desired data format is present, use one of the GetData methods to retrieve theĭata = dataObject.GetData(desiredFormat) as byte ĭim dataObject As New DataObject("Some string data to store.")ĭim desiredFormat As String = DataFormats.UnicodeText If (dataObject.GetDataPresent(desiredFormat)) This particular overload of GetDataPresent looks for both native and auto-convertible


Use the GetDataPresent method to check for the presence of a desired data format. String desiredFormat = DataFormats.UnicodeText The following example uses this method to first check whether a specified data format is available (natively or by auto-convert) if the specified format is available, the example retrieves the data by using the GetData(String) method.
