IDataObject Interfaccia
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Importante
Questa API non è conforme a CLS.
Fornisce la definizione gestita dell'interfaccia IDataObject
.
public interface class IDataObject
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IDataObject
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
[System.CLSCompliant(false)]
public interface IDataObject
public interface IDataObject
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
[System.Runtime.InteropServices.Guid("0000010E-0000-0000-C000-000000000046")]
public interface IDataObject
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
[System.Runtime.InteropServices.Guid("0000010e-0000-0000-C000-000000000046")]
public interface IDataObject
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IDataObject = interface
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
[<System.CLSCompliant(false)>]
type IDataObject = interface
type IDataObject = interface
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
[<System.Runtime.InteropServices.Guid("0000010E-0000-0000-C000-000000000046")>]
type IDataObject = interface
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
[<System.Runtime.InteropServices.Guid("0000010e-0000-0000-C000-000000000046")>]
type IDataObject = interface
Public Interface IDataObject
- Derivato
- Attributi
Per altre informazioni, vedere Interfaccia IDataObject.
Common Language Runtime genera un'eccezione quando un metodo COM nel codice nativo restituisce un HRESULT. Per altre informazioni, vedere How to: Map HRESULTs and Exceptions.
DAdvise(FORMATETC, ADVF, IAdvise |
Crea una connessione tra un oggetto dati e un sink consultivo. Questo metodo viene chiamato da un oggetto che supporta un sink consultivo e abilita tale sink per ricevere una notifica delle modifiche nei dati dell'oggetto. |
DUnadvise(Int32) |
Elimina definitivamente una connessione di notifica stabilita in precedenza. |
Enum |
Crea un oggetto che può essere usato per enumerare le connessioni consultive correnti. |
Enum |
Crea un oggetto per l'enumerazione delle strutture FORMATETC per un oggetto dati. Queste strutture sono utilizzate nelle chiamate al metodo GetData(FORMATETC, STGMEDIUM) o SetData(FORMATETC, STGMEDIUM, Boolean). |
Get |
Fornisce una struttura FORMATETC standard logicamente equivalente a una struttura più complessa. Utilizzare questo metodo per determinare se due strutture FORMATETC diverse restituiscono gli stessi dati, eliminando la necessità di rendering duplicati. |
Get |
Ottiene i dati da un oggetto dati di origine. Il metodo GetData(FORMATETC, STGMEDIUM), chiamato da un consumer di dati, esegue il rendering dei dati descritti nella struttura FORMATETC specificata e li trasferisce mediante la struttura STGMEDIUM specificata. Il chiamante si assume la responsabilità del rilascio della struttura STGMEDIUM. |
Get |
Ottiene i dati da un oggetto dati di origine. Questo metodo, chiamato da un consumer di dati, si differenzia dal metodo GetData(FORMATETC, STGMEDIUM) in quanto il chiamante deve allocare e liberare il supporto di archiviazione specificato. |
Query |
Determina se l'oggetto dati è in grado di eseguire il rendering dei dati descritti nella struttura FORMATETC. Gli oggetti che tentano un'operazione di inserimento o rilascio possono chiamare questo metodo prima di chiamare GetData(FORMATETC, STGMEDIUM) per ottenere indicazioni relative alla riuscita dell'operazione. |
Set |
Trasferisce i dati all'oggetto che implementa il metodo. Questo metodo viene chiamato da un oggetto contenente un'origine dati. |
Prodotto | Versioni |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7 |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 |
.NET Standard | 2.0, 2.1 |