Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Class

NativeExportAttribute

class NativeExportAttribute

Module: System.Runtime.InteropServices
Assembly: System.Runtime.dll
Source file: NativeExportAttribute.rvn

Inheritance: Object → Attribute → NativeExportAttribute

Exposes a supported static function through the platform native calling convention. Exporting does not transfer pointer ownership or publish managed object layout.

Constructors

3 items
NativeExportAttribute() Uses versioned mangling and the platform C convention.
NativeExportAttribute(entryPoint: string, callingConvention: NativeCallingConvention) Selects an exact export name and native convention. Only supported native representations may cross the boundary.
NativeExportAttribute(entryPoint: string) Selects an exact export name and the platform C convention. An empty name requests versioned mangling from source identity and signature.

Properties

2 items
CallingConvention: NativeCallingConvention Gets the native calling convention, defaulting to Cdecl.
EntryPoint: string Gets the exact native export name, or an empty string for automatic mangling.

Methods

4 items
Equals(other: object?) -> bool Tests reference identity by default; an ordinary class may override equality. Inherited from Object.Equals
GetHashCode() -> int Returns a stable identity hash by default; an ordinary class may override it consistently with equality. Inherited from Object.GetHashCode
GetType() -> TypeInfo Returns metadata for the concrete runtime type of this instance. Inherited from Object.GetType
ToString() -> string Returns the concrete runtime type name for supported references, or display text from a class or boxed-struct override. Inherited from Object.ToString