Allows an unmanaged method to call a managed method.
AutomationProxyAttributeSpecifies whether the type should be marshaled using the Automation marshaler or a custom proxy and stub.
BestFitMappingAttributeControls whether Unicode characters are converted to the closest matching ANSI characters.
BStrWrapperMarshals data of type VT_BSTR
from managed to unmanaged code. This class cannot be inherited.
Indicates the type of class interface to be generated for a class exposed to COM, if an interface is generated at all.
CoClassAttributeSpecifies the class identifier of a coclass imported from a type library.
CollectionsMarshalAn unsafe class that provides a set of methods to access the underlying data representations of collections.
ComAliasNameAttributeIndicates the COM alias for a parameter or field type.
ComAwareEventInfoPermits late-bound registration of an event handler.
ComCompatibleVersionAttributeIndicates 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.
ComConversionLossAttributeIndicates that information was lost about a class or interface when it was imported from a type library to an assembly.
ComDefaultInterfaceAttributeSpecifies a default interface to expose to COM. This class cannot be inherited.
ComEventInterfaceAttributeIdentifies 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.
ComEventsHelperProvides methods that enable .NET delegates that handle events to be added and removed from COM objects.
COMExceptionThe exception that is thrown when an unrecognized HRESULT is returned from a COM method call.
ComImportAttributeIndicates that the attributed type was previously defined in COM.
ComRegisterFunctionAttributeSpecifies 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.
ComSourceInterfacesAttributeIdentifies a list of interfaces that are exposed as COM event sources for the attributed class.
ComUnregisterFunctionAttributeSpecifies 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.
ComVisibleAttributeControls accessibility of an individual managed type or member, or of all types within an assembly, to COM.
ComWrappersClass for managing wrappers of COM IUnknown types.
CriticalHandleRepresents a wrapper class for handle resources.
CurrencyWrapperWraps objects the marshaler should marshal as a VT_CY
.
Specifies the value of the CharSet enumeration. This class cannot be inherited.
DefaultDllImportSearchPathsAttributeSpecifies the paths that are used to search for DLLs that provide functions for platform invokes.
DefaultParameterValueAttributeSets the default value of a parameter when called from a language that supports default parameters. This class cannot be inherited.
DispatchWrapperWraps objects the marshaler should marshal as a VT_DISPATCH
.
Specifies the COM dispatch identifier (DISPID) of a method, field, or property.
DllImportAttributeIndicates that the attributed method is exposed by an unmanaged dynamic-link library (DLL) as a static entry point.
DynamicInterfaceCastableImplementationAttributeAttribute required by any type that is returned by GetInterfaceImplementation(RuntimeTypeHandle).
ErrorWrapperWraps objects the marshaler should marshal as a VT_ERROR
.
Enables customization of managed objects that extend from unmanaged objects during creation.
ExternalExceptionThe base exception type for all COM interop exceptions and structured exception handling (SEH) exceptions.
FieldOffsetAttributeIndicates the physical position of fields within the unmanaged representation of a class or structure.
GCHandleExtensions GuidAttributeSupplies an explicit Guid when an automatic GUID is undesirable.
HandleCollectorTracks outstanding handles and forces a garbage collection when the specified threshold is reached.
IDispatchImplAttributeIndicates which IDispatch
implementation the common language runtime uses when exposing dual interfaces and dispinterfaces to COM.
An unsafe class that provides a set of methods to access the underlying data representations of immutable collections.
ImportedFromTypeLibAttributeIndicates that the types defined within an assembly were originally defined in a type library.
InAttributeIndicates that data should be marshaled from the caller to the callee, but not back to the caller.
InterfaceTypeAttributeIndicates whether a managed interface is dual, dispatch-only, or IUnknown
-only when exposed to COM.
The exception thrown when an invalid COM object is used.
InvalidOleVariantTypeExceptionThe exception thrown by the marshaler when it encounters an argument of a variant type that can not be marshaled to managed code.
JsonMarshal LCIDConversionAttributeIndicates that a method's unmanaged signature expects a locale identifier (LCID) parameter.
LibraryImportAttributeIndicates that a source generator should create a function for marshalling arguments instead of relying on the runtime to generate an equivalent marshalling function at run time.
ManagedToNativeComInteropStubAttributeProvides support for user customization of interop stubs in managed-to-COM interop scenarios.
MarshalProvides 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.
MarshalAsAttributeIndicates how to marshal the data between managed and unmanaged code.
MarshalDirectiveExceptionThe exception that is thrown by the marshaler when it encounters a MarshalAsAttribute it does not support.
MemoryMarshalProvides methods to interoperate with Memory<T>, ReadOnlyMemory<T>, Span<T>, and ReadOnlySpan<T>.
NativeLibraryProvides APIs for managing native libraries.
NativeMemoryThis class contains methods that are mainly used to manage native memory.
OptionalAttributeIndicates that a parameter is optional.
OutAttributeIndicates that data should be marshaled from callee back to caller.
PosixSignalContextProvides data for a PosixSignalRegistration event.
PosixSignalRegistrationHandles a PosixSignal.
PreserveSigAttributeIndicates that the HRESULT signature transformation that takes place during COM interop calls should be suppressed.
PrimaryInteropAssemblyAttributeIndicates that the attributed assembly is a primary interop assembly.
ProgIdAttributeAllows the user to specify the ProgID of a class.
RegistrationServicesProvides a set of services for registering and unregistering managed assemblies for use from COM.
RuntimeEnvironmentProvides a collection of static
methods that return information about the common language runtime environment.
Provides information about the .NET runtime installation.
SafeArrayRankMismatchExceptionThe exception thrown when the rank of an incoming SAFEARRAY
does not match the rank specified in the managed signature.
The exception thrown when the type of the incoming SAFEARRAY
does not match the type specified in the managed signature.
Provides a controlled memory buffer that can be used for reading and writing. Attempts to access memory outside the controlled buffer (underruns and overruns) raise exceptions.
SafeHandleRepresents a wrapper class for operating system handles. This class must be inherited.
SEHExceptionRepresents structured exception handling (SEH) errors.
SequenceMarshalProvides a collection of methods for interoperating with ReadOnlySequence<T>.
SetWin32ContextInIDispatchAttributeThis attribute has been deprecated.
StandardOleMarshalObjectReplaces the standard common language runtime (CLR) free-threaded marshaler with the standard OLE STA marshaler.
StructLayoutAttributeLets you control the physical layout of the data fields of a class or structure in memory.
SuppressGCTransitionAttributeIndicates that a garbage collection transition should be skipped when an unmanaged function call is made.
TensorMarshalProvides methods to interoperate with Tensor<T>, TensorSpan<T>, and ReadOnlyTensorSpan<T>.
TypeIdentifierAttributeProvides support for type equivalence.
TypeLibConverterProvides a set of services that convert a managed assembly to a COM type library and vice versa.
TypeLibFuncAttributeContains the FUNCFLAGS that were originally imported for this method from the COM type library.
TypeLibImportClassAttributeSpecifies which Type exclusively uses an interface. This class cannot be inherited.
TypeLibTypeAttributeContains the TYPEFLAGS that were originally imported for this type from the COM type library.
TypeLibVarAttributeContains the VARFLAGS that were originally imported for this field from the COM type library.
TypeLibVersionAttributeSpecifies the version number of an exported type library.
TypeMapAssemblyTargetAttribute<TTypeMapGroup> TypeMapAssociationAttribute<TTypeMapGroup> TypeMapAttribute<TTypeMapGroup> TypeMapping UnknownWrapperWraps objects the marshaler should marshal as a VT_UNKNOWN
.
Specifies the calling convention required to call P/Invoke methods implemented in unmanaged code.
UnmanagedCallersOnlyAttributeAny method marked with UnmanagedCallersOnlyAttribute can be directly called from native code. 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.
UnmanagedFunctionPointerAttributeControls the marshaling behavior of a delegate signature passed as an unmanaged function pointer to or from unmanaged code. This class cannot be inherited.
VariantWrapperMarshals data of type VT_VARIANT | VT_BYREF
from managed to unmanaged code. This class cannot be inherited.
Specifies that the P/Invoke marked with this attribute should be linked in as a WASM import.
Members of this namespace provide several categories of functionality, as shown in the following table. Attributes control marshaling behavior, such as how to arrange structures or how to represent strings. 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.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4