|
Dieser Artikel wurde maschinell übersetzt. Bewegen Sie den Mauszeiger über die Sätze im Artikel, um den Originaltext anzuzeigen. Weitere Informationen
|
Übersetzung
Original
|
DataObject.GetData-Methode (Type)
Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameter
- format
- Typ: System.Type
Ein Type, das das Format der abzurufenden Daten darstellt.
Implementiert
IDataObject.GetData(Type) Hinweis |
|---|
private void GetMyData() { // Creates a component to store in the data object. Component myComponent = new Component(); // Creates a new data object and assigns it the component. DataObject myDataObject = new DataObject(myComponent); // Creates a type to store the type of data. Type myType = myComponent.GetType(); // Retrieves the data using myType to represent its type. Object myObject = myDataObject.GetData(myType); if(myObject != null) textBox1.Text = "The data type stored in the DataObject is: " + myObject.GetType().Name; else textBox1.Text = "Data of the specified type was not stored " + "in the DataObject."; }
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core-Rolle wird nicht unterstützt), Windows Server 2008 R2 (Server Core-Rolle wird mit SP1 oder höher unterstützt; Itanium wird nicht unterstützt)
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen für .NET Framework.
Hinweis