' 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 DataObject dataObject = new DataObject("Some string data to store.") 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |