IDispatchImplAttribute Classe

Definizione

Attenzione

This attribute is deprecated and will be removed in a future version.

Indica quale IDispatch'implementazione utilizzata da Common Language Runtime quando si espongono interfacce e differenze duali a COM.

public ref class IDispatchImplAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class, Inherited=false)]
public sealed class IDispatchImplAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class, Inherited=false)]
[System.Obsolete("This attribute is deprecated and will be removed in a future version.", false)]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class IDispatchImplAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class, Inherited=false)>]
type IDispatchImplAttribute = class
    inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class, Inherited=false)>]
[<System.Obsolete("This attribute is deprecated and will be removed in a future version.", false)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type IDispatchImplAttribute = class
    inherit Attribute
Public NotInheritable Class IDispatchImplAttribute
Inherits Attribute
Ereditarietà
IDispatchImplAttribute
Attributi

Commenti

È possibile applicare questo attributo a classi o assembly.

Questo attributo deve essere impostato solo quando è necessaria un'implementazione esplicita. Quando si imposta l'attributo su CompatibleImpl, l'implementazione IDispatch viene fornita passando le informazioni sul tipo per l'oggetto all'API CreateStdDispatch COM. Quando si imposta l'attributo su InternalImpl, l'implementazione IDispatch viene fornita da Common Language Runtime. L'impostazione dell'attributo su consente al SystemDefinedImpl runtime di scegliere l'implementazione appropriata. Quando si usa l'attributo in un assembly, l'attributo si applica a tutte le classi definite all'interno dell'assembly. Quando si usa l'attributo in una singola classe, l'attributo si applica solo alle interfacce esposte da tale classe ed esegue l'override di qualsiasi impostazione a livello di assembly.

Costruttori

Nome Descrizione
IDispatchImplAttribute(IDispatchImplType)
Obsoleti.

Inizializza una nuova istanza della IDispatchImplAttribute classe con il valore specificato IDispatchImplType .

IDispatchImplAttribute(Int16)
Obsoleti.

Inizializza una nuova istanza della IDispatchImplAttribute classe con il valore specificato IDispatchImplType .

Proprietà

Nome Descrizione
TypeId
Obsoleti.

Se implementato in una classe derivata, ottiene un identificatore univoco per questo Attribute.

(Ereditato da Attribute)
Value
Obsoleti.

Ottiene il IDispatchImplType valore utilizzato dalla classe .

Metodi

Nome Descrizione
Equals(Object)
Obsoleti.

Restituisce un valore che indica se questa istanza è uguale a un oggetto specificato.

(Ereditato da Attribute)
GetHashCode()
Obsoleti.

Restituisce il codice hash per questa istanza.

(Ereditato da Attribute)
GetType()
Obsoleti.

Ottiene il Type dell'istanza corrente.

(Ereditato da Object)
IsDefaultAttribute()
Obsoleti.

Quando sottoposto a override in una classe derivata, indica se il valore di questa istanza è il valore predefinito per la classe derivata.

(Ereditato da Attribute)
Match(Object)
Obsoleti.

Quando sottoposto a override in una classe derivata, restituisce un valore che indica se questa istanza è uguale a un oggetto specificato.

(Ereditato da Attribute)
MemberwiseClone()
Obsoleti.

Crea una copia superficiale del Objectcorrente.

(Ereditato da Object)
ToString()
Obsoleti.

Restituisce una stringa che rappresenta l'oggetto corrente.

(Ereditato da Object)

Implementazioni dell'interfaccia esplicita

Nome Descrizione
_Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)
Obsoleti.

Esegue il mapping di un set di nomi a un set corrispondente di identificatori dispatch.

(Ereditato da Attribute)
_Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)
Obsoleti.

Recupera le informazioni sul tipo per un oggetto, che può essere utilizzato per ottenere le informazioni sul tipo per un'interfaccia.

(Ereditato da Attribute)
_Attribute.GetTypeInfoCount(UInt32)
Obsoleti.

Recupera il numero di interfacce di informazioni sul tipo fornite da un oggetto (0 o 1).

(Ereditato da Attribute)
_Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)
Obsoleti.

Fornisce l'accesso alle proprietà e ai metodi esposti da un oggetto .

(Ereditato da Attribute)

Si applica a

Vedi anche