System.Runtime.InteropServices Spazio dei nomi
Fornisce un'ampia gamma di membri che supportano l'interoperabilità COM e i servizi platform invoke. Provides a wide variety of members that support COM interop and platform invoke services. Se non si ha familiarità con questi servizi, vedere Interoperabilità con codice non gestito. If you are unfamiliar with these services, see Interoperating with Unmanaged Code.
Classi
AllowReversePInvokeCallsAttribute |
Consente a un metodo non gestito di chiamare un metodo gestito.Allows an unmanaged method to call a managed method. |
AutomationProxyAttribute |
Specifica se il marshalling del tipo deve essere effettuato mediante il gestore di marshalling di Automazione oppure un proxy e uno stub personalizzati.Specifies whether the type should be marshaled using the Automation marshaler or a custom proxy and stub. |
BestFitMappingAttribute |
Controlla se i caratteri Unicode vengono convertiti nei caratteri ANSI corrispondenti più vicini.Controls whether Unicode characters are converted to the closest matching ANSI characters. |
BStrWrapper |
Esegue il marshalling dei dati di tipo |
ClassInterfaceAttribute |
Indica il tipo di interfaccia di classe da generare per una classe esposta a COM, se viene generata un'interfaccia.Indicates the type of class interface to be generated for a class exposed to COM, if an interface is generated at all. |
CoClassAttribute |
Specifica l'identificatore di classe di una coclasse importata da una libreria dei tipi.Specifies the class identifier of a coclass imported from a type library. |
CollectionsMarshal |
Classe non sicura che fornisce un set di metodi per accedere alle rappresentazioni di dati sottostanti delle raccolte.An unsafe class that provides a set of methods to access the underlying data representations of collections. |
ComAliasNameAttribute |
Indica l'alias COM per un tipo di parametro o campo.Indicates the COM alias for a parameter or field type. |
ComAwareEventInfo |
Consente la registrazione ad associazione tardiva di un gestore eventi.Permits late-bound registration of an event handler. |
ComCompatibleVersionAttribute |
Indica a un client COM che tutte le classi della versione corrente di un assembly sono compatibili con le classi della versione precedente.Indicates to a COM client that all classes in the current version of an assembly are compatible with classes in an earlier version of the assembly. |
ComConversionLossAttribute |
Indica che le informazioni relative a una classe o a un'interfaccia sono state perse durante l'importazione da una libreria dei tipi in un assembly.Indicates that information was lost about a class or interface when it was imported from a type library to an assembly. |
ComDefaultInterfaceAttribute |
Specifica un'interfaccia predefinita da esporre a COM.Specifies a default interface to expose to COM. La classe non può essere ereditata.This class cannot be inherited. |
ComEventInterfaceAttribute |
Identifica l'interfaccia di origine e la classe che implementa i metodi dell'interfaccia eventi generata quando si importa una coclasse da una libreria dei tipi COM.Identifies the source interface and the class that implements the methods of the event interface that is generated when a coclass is imported from a COM type library. |
ComEventsHelper |
Offre metodi che consentono l'aggiunta e la rimozione dagli oggetti COM di delegati di .NET che gestiscono gli eventi.Provides methods that enable .NET delegates that handle events to be added and removed from COM objects. |
COMException |
Eccezione generata quando viene restituito un HRESULT non riconosciuto da una chiamata a un metodo COM.The exception that is thrown when an unrecognized HRESULT is returned from a COM method call. |
ComImportAttribute |
Indica che il tipo a cui è stato applicato l'attributo è stato definito in precedenza in COM.Indicates that the attributed type was previously defined in COM. |
ComRegisterFunctionAttribute |
Specifica il metodo da chiamare quando si registra un assembly per l'utilizzo in COM; questo metodo consente l'esecuzione di codice scritto dall'utente durante la procedura di registrazione.Specifies the method to call when you register an assembly for use from COM; this enables the execution of user-written code during the registration process. |
ComSourceInterfacesAttribute |
Identifica un elenco di interfacce esposte come origini di eventi COM per la classe con attributi.Identifies a list of interfaces that are exposed as COM event sources for the attributed class. |
ComUnregisterFunctionAttribute |
Specifica il metodo da chiamare quando si annulla la registrazione di un assembly per l'utilizzo in COM; questo metodo consente l'esecuzione di codice scritto dall'utente durante la procedura di annullamento della registrazione.Specifies the method to call when you unregister an assembly for use from COM; this allows for the execution of user-written code during the unregistration process. |
ComVisibleAttribute |
Controlla l'accessibilità di un singolo tipo gestito o un membro, oppure di tutti i tipi all'interno di un assembly, per COM.Controls accessibility of an individual managed type or member, or of all types within an assembly, to COM. |
ComWrappers |
Classe per gestire i wrapper di tipi IUnknown COM.Class for managing wrappers of COM IUnknown types. |
CriticalHandle |
Rappresenta una classe wrapper per le risorse di handle.Represents a wrapper class for handle resources. |
CurrencyWrapper |
Esegue il wrapping degli oggetti di cui il gestore di marshalling deve eseguire il marshalling come |
DefaultCharSetAttribute |
Specifica il valore dell'enumerazione CharSet.Specifies the value of the CharSet enumeration. La classe non può essere ereditata.This class cannot be inherited. |
DefaultDllImportSearchPathsAttribute |
Specifica i percorsi usati per cercare le DLL che forniscono le funzioni per le operazioni platform invoke.Specifies the paths that are used to search for DLLs that provide functions for platform invokes. |
DefaultParameterValueAttribute |
Imposta il valore predefinito di un parametro quando viene chiamato da un linguaggio che supporta parametri predefiniti.Sets the default value of a parameter when called from a language that supports default parameters. La classe non può essere ereditata.This class cannot be inherited. |
DispatchWrapper |
Esegue il wrapping degli oggetti di cui il gestore di marshalling deve eseguire il marshalling come |
DispIdAttribute |
Specifica l'identificatore di invio (DISPID) COM di un metodo, un campo o una proprietà.Specifies the COM dispatch identifier (DISPID) of a method, field, or property. |
DllImportAttribute |
Indica che il metodo con attributi viene esposto da una libreria di collegamento dinamico (DLL) non gestita come un punto di ingresso statico.Indicates that the attributed method is exposed by an unmanaged dynamic-link library (DLL) as a static entry point. |
DynamicInterfaceCastableImplementationAttribute |
Attributo richiesto da qualsiasi tipo restituito da GetInterfaceImplementation(RuntimeTypeHandle).Attribute required by any type that is returned by GetInterfaceImplementation(RuntimeTypeHandle). |
ErrorWrapper |
Esegue il wrapping degli oggetti di cui il gestore di marshalling deve eseguire il marshalling come |
ExtensibleClassFactory |
Consente la personalizzazione di oggetti gestiti estesi da oggetti non gestiti durante la creazione.Enables customization of managed objects that extend from unmanaged objects during creation. |
ExternalException |
Il tipo di eccezione base per tutte le eccezioni di interoperabilità COM e le eccezioni SEH (Structured Exception Handling, gestione strutturata delle eccezioni).The base exception type for all COM interop exceptions and structured exception handling (SEH) exceptions. |
FieldOffsetAttribute |
Indica la posizione fisica dei campi all'interno della rappresentazione non gestita di una classe o una struttura.Indicates the physical position of fields within the unmanaged representation of a class or structure. |
GuidAttribute |
Fornisce un oggetto Guid esplicito quando un GUID automatico non è auspicabile.Supplies an explicit Guid when an automatic GUID is undesirable. |
HandleCollector |
Tiene traccia degli handle in sospeso e forza un'operazione di Garbage Collection quando viene raggiunta la soglia specificata.Tracks outstanding handles and forces a garbage collection when the specified threshold is reached. |
IDispatchImplAttribute |
Indica quale implementazione di |
ImportedFromTypeLibAttribute |
Indica che i tipi definiti all'interno di un assembly sono stati definiti in origine in una libreria dei tipi.Indicates that the types defined within an assembly were originally defined in a type library. |
InAttribute |
Indica che il marshalling dei dati deve essere eseguito dal chiamante al chiamato, ma non di nuovo al chiamante.Indicates that data should be marshaled from the caller to the callee, but not back to the caller. |
InterfaceTypeAttribute |
Indica se un'interfaccia gestita è del tipo dual, dispatch-only o solo |
InvalidComObjectException |
Eccezione generata quando si usa un oggetto COM non valido.The exception thrown when an invalid COM object is used. |
InvalidOleVariantTypeException |
Eccezione generata dal gestore di marshalling quando viene rilevato un argomento di tipo Variant per cui non è possibile eseguire il marshalling nel codice gestito.The exception thrown by the marshaler when it encounters an argument of a variant type that can not be marshaled to managed code. |
LCIDConversionAttribute |
Indica che la firma non gestita di un metodo prevede un parametro di ID impostazioni locali (LCID).Indicates that a method's unmanaged signature expects a locale identifier (LCID) parameter. |
ManagedToNativeComInteropStubAttribute |
Fornisce supporto per la personalizzazione dell'utente di stub di interoperabilità negli scenari di interoperabilità da gestito a COM.Provides support for user customization of interop stubs in managed-to-COM interop scenarios. |
Marshal |
Fornisce una raccolta di metodi per l'allocazione della memoria non gestita, la copia di blocchi di memoria non gestita e la conversione di tipi gestiti in tipi non gestiti, oltre ad altri metodi usati durante l'interazione con codice non gestito.Provides a collection of methods for allocating unmanaged memory, copying unmanaged memory blocks, and converting managed to unmanaged types, as well as other miscellaneous methods used when interacting with unmanaged code. |
MarshalAsAttribute |
Indica come eseguire il marshalling dei dati tra codice gestito e non gestito.Indicates how to marshal the data between managed and unmanaged code. |
MarshalDirectiveException |
Eccezione generata dal gestore di marshalling quando rileva un oggetto MarshalAsAttribute non supportato.The exception that is thrown by the marshaler when it encounters a MarshalAsAttribute it does not support. |
MemoryMarshal |
Fornisce metodi per l'interoperabilità con Memory<T>, ReadOnlyMemory<T>, Span<T> e ReadOnlySpan<T>.Provides methods to interoperate with Memory<T>, ReadOnlyMemory<T>, Span<T>, and ReadOnlySpan<T>. |
NativeLibrary |
Offre API per la gestione delle librerie native.Provides APIs for managing native libraries. |
OptionalAttribute |
Indica che un parametro è facoltativo.Indicates that a parameter is optional. |
OutAttribute |
Indica che il marshalling dei dati deve essere effettuato dal chiamato al chiamante.Indicates that data should be marshaled from callee back to caller. |
PreserveSigAttribute |
Indica che la trasformazione della firma del valore HRESULT o |
PrimaryInteropAssemblyAttribute |
Indica che l'assembly con attributi è un assembly di interoperabilità primario.Indicates that the attributed assembly is a primary interop assembly. |
ProgIdAttribute |
Consente all'utente di specificare il ProgID di una classe.Allows the user to specify the ProgID of a class. |
RegistrationServices |
Fornisce un insieme di servizi per la registrazione e l'annullamento della registrazione di assembly gestiti da utilizzare da COM.Provides a set of services for registering and unregistering managed assemblies for use from COM. |
RuntimeEnvironment |
Fornisce un insieme di metodi |
RuntimeInformation |
Visualizza informazioni sull'installazione di runtime .NET.Provides information about the .NET runtime installation. |
SafeArrayRankMismatchException |
Eccezione generata quando il numero di dimensioni di un |
SafeArrayTypeMismatchException |
Eccezione generata quando il tipo di |
SafeBuffer |
Fornisce un buffer di memoria controllato che può essere usato per la lettura e la scrittura.Provides a controlled memory buffer that can be used for reading and writing. I tentativi di accedere alla memoria al di fuori del buffer controllato (sottocarichi e sovraccarichi) generano eccezioni.Attempts to access memory outside the controlled buffer (underruns and overruns) raise exceptions. |
SafeHandle |
Rappresenta una classe wrapper per gli handle del sistema operativo.Represents a wrapper class for operating system handles. La classe deve essere ereditata.This class must be inherited. |
SEHException |
Rappresenta errori SEH (Structured Exception Handling).Represents structured exception handling (SEH) errors. |
SequenceMarshal |
Offre una raccolta di metodi per l'interoperabilità con ReadOnlySequence<T>.Provides a collection of methods for interoperating with ReadOnlySequence<T>. |
SetWin32ContextInIDispatchAttribute |
Questo attributo è stato deprecato.This attribute has been deprecated. |
StandardOleMarshalObject |
Sostituisce il gestore del marshalling con modello di threading Free CLR (Common Language Runtime) con il gestore del marshalling OLE STA.Replaces the standard common language runtime (CLR) free-threaded marshaler with the standard OLE STA marshaler. |
StructLayoutAttribute |
Consente di controllare il layout fisico dei campi dati di una classe o una struttura in memoria.Lets you control the physical layout of the data fields of a class or structure in memory. |
SuppressGCTransitionAttribute |
Indica che una transizione di Garbage Collection deve essere ignorata quando viene eseguita una chiamata di funzione non gestita.Indicates that a garbage collection transition should be skipped when an unmanaged function call is made. |
TypeIdentifierAttribute |
Fornisce supporto per l'equivalenza del tipo.Provides support for type equivalence. |
TypeLibConverter |
Fornisce un insieme di servizi che convertono un assembly gestito in una libreria dei tipi COM e viceversa.Provides a set of services that convert a managed assembly to a COM type library and vice versa. |
TypeLibFuncAttribute |
Contiene l'oggetto FUNCFLAGS originariamente importato per questo metodo dalla libreria dei tipi COM.Contains the FUNCFLAGS that were originally imported for this method from the COM type library. |
TypeLibImportClassAttribute |
Specifica quale oggetto Type utilizza in modo esclusivo un'interfaccia.Specifies which Type exclusively uses an interface. La classe non può essere ereditata.This class cannot be inherited. |
TypeLibTypeAttribute |
Contiene l'oggetto TYPEFLAGS originariamente importato per questo tipo dalla libreria dei tipi COM.Contains the TYPEFLAGS that were originally imported for this type from the COM type library. |
TypeLibVarAttribute |
Contiene l'oggetto VARFLAGS originariamente importato per questo campo dalla libreria dei tipi COM.Contains the VARFLAGS that were originally imported for this field from the COM type library. |
TypeLibVersionAttribute |
Specifica il numero della versione di una libreria dei tipi esportata.Specifies the version number of an exported type library. |
UnknownWrapper |
Esegue il wrapping degli oggetti di cui il gestore di marshalling deve eseguire il marshalling come |
UnmanagedCallersOnlyAttribute |
Qualsiasi metodo contrassegnato con UnmanagedCallersOnlyAttribute può essere chiamato direttamente dal codice nativo.Any method marked with UnmanagedCallersOnlyAttribute can be directly called from native code. Il token della funzione può essere caricato in una variabile locale usando l'operatore address-of in C# e passato come callback a un metodo nativo.The function token can be loaded to a local variable using the address-of operator in C# and passed as a callback to a native method. |
UnmanagedFunctionPointerAttribute |
Controlla il comportamento di marshalling di una firma di delegato passata come un puntatore a una funzione non gestita o da codice non gestito.Controls the marshaling behavior of a delegate signature passed as an unmanaged function pointer to or from unmanaged code. La classe non può essere ereditata.This class cannot be inherited. |
VariantWrapper |
Esegue il marshalling dei dati di tipo |
Struct
ArrayWithOffset |
Incapsula una matrice e un offset all'interno della matrice specificata.Encapsulates an array and an offset within the specified array. |
BIND_OPTS | |
BINDPTR | |
ComWrappers.ComInterfaceDispatch |
Interfaccia binaria di un'applicazione per il dispatch di funzioni di un'interfaccia COM.An application binary interface for function dispatch of a COM interface. |
ComWrappers.ComInterfaceEntry |
Tipo di interfaccia e puntatore all'elemento VTable di destinazione.Interface type and pointer to targeted VTable. |
CONNECTDATA |
Usare invece CONNECTDATA.Use CONNECTDATA instead. |
DISPPARAMS |
Usare invece DISPPARAMS.Use DISPPARAMS instead. |
ELEMDESC | |
ELEMDESC.DESCUNION |
Usare invece ELEMDESC.DESCUNION.Use ELEMDESC.DESCUNION instead. |
EXCEPINFO | |
FILETIME | |
FUNCDESC | |
GCHandle |
Fornisce un modo per accedere a un oggetto gestito da una memoria non gestita.Provides a way to access a managed object from unmanaged memory. |
HandleRef |
Esegue il wrapping di un oggetto gestito che contiene un handle a una risorsa passata a un codice non gestito attraverso il platform invoke.Wraps a managed object holding a handle to a resource that is passed to unmanaged code using platform invoke. |
IDLDESC | |
OSPlatform |
Rappresenta una piattaforma del sistema operativo.Represents an operating system platform. |
PARAMDESC | |
STATSTG | |
TYPEATTR | |
TYPEDESC | |
TYPELIBATTR |
In alternativa, utilizzare TYPELIBATTR.Use TYPELIBATTR instead. |
VARDESC | |
VARDESC.DESCUNION |
Usare invece VARDESC.DESCUNION.Use VARDESC.DESCUNION instead. |
Interfacce
_Activator |
Espone la classe Activator a codice non gestito.Exposes the Activator class to unmanaged code. |
_Assembly |
Espone i membri pubblici della classe Assembly a codice non gestito.Exposes the public members of the Assembly class to unmanaged code. |
_AssemblyBuilder |
Espone la classe AssemblyBuilder a codice non gestito.Exposes the AssemblyBuilder class to unmanaged code. |
_AssemblyName |
Espone la classe AssemblyName a codice non gestito.Exposes the AssemblyName class to unmanaged code. |
_Attribute |
Espone la classe Attribute a codice non gestito.Exposes the Attribute class to unmanaged code. |
_ConstructorBuilder |
Espone la classe ConstructorBuilder a codice non gestito.Exposes the ConstructorBuilder class to unmanaged code. |
_ConstructorInfo |
Espone i membri pubblici della classe ConstructorInfo a codice non gestito.Exposes the public members of the ConstructorInfo class to unmanaged code. |
_CustomAttributeBuilder |
Espone la classe CustomAttributeBuilder a codice non gestito.Exposes the CustomAttributeBuilder class to unmanaged code. |
_EnumBuilder |
Espone la classe EnumBuilder a codice non gestito.Exposes the EnumBuilder class to unmanaged code. |
_EventBuilder |
Espone la classe EventBuilder a codice non gestito.Exposes the EventBuilder class to unmanaged code. |
_EventInfo |
Espone i membri pubblici della classe EventInfo a codice non gestito.Exposes the public members of the EventInfo class to unmanaged code. |
_Exception |
Espone i membri pubblici della classe Exception a codice non gestito.Exposes the public members of the Exception class to unmanaged code. |
_FieldBuilder |
Espone la classe FieldBuilder a codice non gestito.Exposes the FieldBuilder class to unmanaged code. |
_FieldInfo |
Espone i membri pubblici della classe FieldInfo a codice non gestito.Exposes the public members of the FieldInfo class to unmanaged code. |
_ILGenerator |
Espone la classe ILGenerator a codice non gestito.Exposes the ILGenerator class to unmanaged code. |
_LocalBuilder |
Espone la classe LocalBuilder a codice non gestito.Exposes the LocalBuilder class to unmanaged code. |
_MemberInfo |
Espone i membri pubblici della classe MemberInfo a codice non gestito.Exposes the public members of the MemberInfo class to unmanaged code. |
_MethodBase |
Espone i membri pubblici della classe MethodBase a codice non gestito.Exposes the public members of the MethodBase class to unmanaged code. |
_MethodBuilder |
Espone la classe MethodBuilder a codice non gestito.Exposes the MethodBuilder class to unmanaged code. |
_MethodInfo |
Espone i membri pubblici della classe MethodInfo a codice non gestito.Exposes the public members of the MethodInfo class to unmanaged code. |
_MethodRental |
Espone la classe MethodRental a codice non gestito.Exposes the MethodRental class to unmanaged code. |
_Module |
Espone la classe Module a codice non gestito.Exposes the Module class to unmanaged code. |
_ModuleBuilder |
Espone la classe ModuleBuilder a codice non gestito.Exposes the ModuleBuilder class to unmanaged code. |
_ParameterBuilder |
Espone la classe ParameterBuilder a codice non gestito.Exposes the ParameterBuilder class to unmanaged code. |
_ParameterInfo |
Espone la classe ParameterInfo a codice non gestito.Exposes the ParameterInfo class to unmanaged code. |
_PropertyBuilder |
Espone la classe PropertyBuilder a codice non gestito.Exposes the PropertyBuilder class to unmanaged code. |
_PropertyInfo |
Espone i membri pubblici della classe PropertyInfo a codice non gestito.Exposes the public members of the PropertyInfo class to unmanaged code. |
_SignatureHelper |
Espone la classe SignatureHelper a codice non gestito.Exposes the SignatureHelper class to unmanaged code. |
_Thread |
Espone la classe Thread a codice non gestito.Exposes the Thread class to unmanaged code. |
_Type |
Espone i membri pubblici dell'oggettoType a codice non gestito.Exposes the public members of the Type class to the unmanaged code. |
_TypeBuilder |
Espone la classe TypeBuilder a codice non gestito.Exposes the TypeBuilder class to unmanaged code. |
ICustomAdapter |
Fornisce un sistema con cui i client possono accedere all'oggetto effettivo, anziché all'oggetto adapter fornito da un gestore di marshalling personalizzato.Provides a way for clients to access the actual object, rather than the adapter object handed out by a custom marshaler. |
ICustomFactory |
Consente agli utenti di scrivere il codice di attivazione per gli oggetti gestiti che estendono MarshalByRefObject.Enables users to write activation code for managed objects that extend MarshalByRefObject. |
ICustomMarshaler |
Fornisce wrapper personalizzati per la gestione delle chiamate a metodi.Provides custom wrappers for handling method calls. |
ICustomQueryInterface |
Consente agli sviluppatori di fornire un'implementazione gestita e personalizzata del metodo IUnknown::QueryInterface(REFIID riid, void **ppvObject).Enables developers to provide a custom, managed implementation of the IUnknown::QueryInterface(REFIID riid, void **ppvObject) method. |
IDynamicInterfaceCastable |
Interfaccia usata per la partecipazione a un errore del cast di tipo.Interface used to participate in a type cast failure. |
IRegistrationServices |
Fornisce un insieme di servizi per la registrazione e l'annullamento della registrazione di assembly gestiti da utilizzare da COM.Provides a set of services for registering and unregistering managed assemblies for use from COM. |
ITypeLibConverter |
Fornisce un insieme di servizi che convertono un assembly gestito in una libreria dei tipi COM e viceversa.Provides a set of services that convert a managed assembly to a COM type library and vice versa. |
ITypeLibExporterNameProvider |
Consente di controllare la combinazione di maiuscole e minuscole nei nomi per l'esportazione in una libreria dei tipi.Provides control over the casing of names when exported to a type library. |
ITypeLibExporterNotifySink |
Fornisce un meccanismo di callback per il convertitore dell'assembly, per informare il chiamante dello stato della conversione e coinvolgerlo nel processo di conversione.Provides a callback mechanism for the assembly converter to inform the caller of the status of the conversion, and involve the caller in the conversion process itself. |
ITypeLibImporterNotifySink |
Fornisce un meccanismo di callback per il convertitore della libreria dei tipi, per informare il chiamante dello stato della conversione e coinvolgerlo nel processo di conversione.Provides a callback mechanism for the type library converter to inform the caller of the status of the conversion, and involve the caller in the conversion process itself. |
UCOMIBindCtx | |
UCOMIConnectionPoint |
Usare invece IConnectionPoint.Use IConnectionPoint instead. |
UCOMIConnectionPointContainer |
Usare invece IConnectionPointContainer.Use IConnectionPointContainer instead. |
UCOMIEnumConnectionPoints |
Usare invece IEnumConnectionPoints.Use IEnumConnectionPoints instead. |
UCOMIEnumConnections |
Usare invece IEnumConnections.Use IEnumConnections instead. |
UCOMIEnumMoniker |
Usare invece IEnumMoniker.Use IEnumMoniker instead. |
UCOMIEnumString |
Usare invece IEnumString.Use IEnumString instead. |
UCOMIEnumVARIANT |
Usare invece IEnumVARIANT.Use IEnumVARIANT instead. |
UCOMIMoniker | |
UCOMIPersistFile |
Usare invece IPersistFile.Use IPersistFile instead. |
UCOMIRunningObjectTable |
Usare invece IRunningObjectTable.Use IRunningObjectTable instead. |
UCOMIStream | |
UCOMITypeComp | |
UCOMITypeInfo | |
UCOMITypeLib |
Enumerazioni
Architecture |
Indica l'architettura del processore.Indicates the processor architecture. |
AssemblyRegistrationFlags |
Definisce un gruppo di flag utilizzati nella registrazione di assembly.Defines a set of flags used when registering assemblies. |
CALLCONV | |
CallingConvention |
Specifica la convenzione di chiamata necessaria per chiamare i metodi implementati nel codice non gestito.Specifies the calling convention required to call methods implemented in unmanaged code. |
CharSet |
Stabilisce quali stringhe sottoposte a marshalling del set di caratteri devono essere usate.Dictates which character set marshaled strings should use. |
ClassInterfaceType |
Identifica il tipo di interfaccia di classe generata per una classe.Identifies the type of class interface that is generated for a class. |
ComInterfaceType |
Identifica come esporre un'interfaccia a COM.Identifies how to expose an interface to COM. |
ComMemberType |
Descrive il tipo di un membro COM.Describes the type of a COM member. |
CreateComInterfaceFlags |
Specifica i flag per il metodo GetOrCreateComInterfaceForObject(Object, CreateComInterfaceFlags).Specifies flags for the GetOrCreateComInterfaceForObject(Object, CreateComInterfaceFlags) method. |
CreateObjectFlags |
Specifica i flag per il metodo GetOrCreateObjectForComInstance(IntPtr, CreateObjectFlags).Specifies flags for the GetOrCreateObjectForComInstance(IntPtr, CreateObjectFlags) method. |
CustomQueryInterfaceMode |
Indica se le chiamate del metodo GetComInterfaceForObject(Object, Type, CustomQueryInterfaceMode) di tipo IUnknown::QueryInterface possono usare l'interfaccia ICustomQueryInterface.Indicates whether the GetComInterfaceForObject(Object, Type, CustomQueryInterfaceMode) method's IUnknown::QueryInterface calls can use the ICustomQueryInterface interface. |
CustomQueryInterfaceResult |
Fornisce i valori restituiti dal metodo GetInterface(Guid, IntPtr).Provides return values for the GetInterface(Guid, IntPtr) method. |
DESCKIND | |
DllImportSearchPath |
Specifica i percorsi usati per cercare le DLL che forniscono le funzioni per le operazioni platform invoke.Specifies the paths that are used to search for DLLs that provide functions for platform invokes. |
ExporterEventKind |
Descrive i callback eseguiti dallo strumento di esportazione della libreria dei tipi durante l'esportazione.Describes the callbacks that the type library exporter makes when exporting a type library. |
FUNCFLAGS | |
FUNCKIND | |
GCHandleType |
Rappresenta i tipi di handle che la classe GCHandle può allocare.Represents the types of handles the GCHandle class can allocate. |
IDispatchImplType |
Indica quale implementazione di |
IDLFLAG | |
IMPLTYPEFLAGS |
In alternativa, utilizzare IMPLTYPEFLAGS.Use IMPLTYPEFLAGS instead. |
ImporterEventKind |
Descrive i callback eseguiti dall'utilità di importazione della libreria dei tipi durante un'importazione.Describes the callbacks that the type library importer makes when importing a type library. |
INVOKEKIND |
In alternativa, utilizzare INVOKEKIND.Use INVOKEKIND instead. |
LayoutKind |
Controlla il layout di un oggetto quando viene esportato in codice non gestito.Controls the layout of an object when exported to unmanaged code. |
LIBFLAGS | |
PARAMFLAG | |
RegistrationClassContext |
Specifica l'insieme di contesti di esecuzione in cui un oggetto classe verrà reso disponibile per richieste di creazione di istanze.Specifies the set of execution contexts in which a class object will be made available for requests to construct instances. |
RegistrationConnectionType |
Definisce i tipi di connessioni a un oggetto classe.Defines the types of connections to a class object. |
SYSKIND | |
TYPEFLAGS | |
TYPEKIND | |
TypeLibExporterFlags |
Indica le modalità di produzione di una libreria dei tipi.Indicates how a type library should be produced. |
TypeLibFuncFlags |
Descrive le impostazioni originali dell'oggetto |
TypeLibImporterFlags |
Indica le modalità di produzione di un assembly.Indicates how an assembly should be produced. |
TypeLibTypeFlags |
Descrive le impostazioni originali dell'oggetto TYPEFLAGS nella libreria dei tipi COM dalla quale il tipo è stato importato.Describes the original settings of the TYPEFLAGS in the COM type library from which the type was imported. |
TypeLibVarFlags |
Descrive le impostazioni originali dell'oggetto VARFLAGS nella libreria dei tipi COM dalla quale la variabile è stata importata.Describes the original settings of the VARFLAGS in the COM type library from which the variable was imported. |
UnmanagedType |
Identifica come eseguire il marshalling di parametri o campi nel codice gestito.Identifies how to marshal parameters or fields to unmanaged code. |
VarEnum |
Indica le modalità di esecuzione del marshalling degli elementi della matrice quando viene effettuato il marshalling di una matrice da codice gestito a codice non gestito come SafeArray.Indicates how to marshal the array elements when an array is marshaled from managed to unmanaged code as a SafeArray. |
VARFLAGS |
Delegati
DllImportResolver |
Specifica un delegato usato per risolvere le librerie native tramite callback.Provides a delegate used to resolve native libraries via callback. |
ObjectCreationDelegate |
Crea un oggetto COM.Creates a COM object. |
Commenti
I membri di questo spazio dei nomi forniscono diverse categorie di funzionalità, come illustrato nella tabella seguente.Members of this namespace provide several categories of functionality, as shown in the following table. Gli attributi controllano il comportamento di marshalling, ad esempio come disporre le strutture o come rappresentare le stringhe.Attributes control marshaling behavior, such as how to arrange structures or how to represent strings. Gli attributi più importanti sono DllImportAttribute , che è possibile usare per definire Platform Invoke metodi per l'accesso alle API non gestite e MarshalAsAttribute , che è possibile usare per specificare la modalità di marshalling dei dati tra la memoria gestita e quella non gestita.The most important attributes are DllImportAttribute, which you use to define platform invoke methods for accessing unmanaged APIs, and MarshalAsAttribute, which you use to specify how data is marshaled between managed and unmanaged memory.