Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​Runtime.​InteropServices.​LibraryImportAttribute
Assembly: System.Runtime.InteropServices
Inheritance: object → Attribute → LibraryImportAttribute
Indicates 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.
Properties
public
string
LibraryName
Gets the name of the library containing the import.
public
string
EntryPoint
Gets or sets the name of the entry point to be called.
public
bool
SetLastError
Gets or sets a value that specifies whether the callee sets an error ( <c>SetLastError</c> on Windows or <c>errno</c> on other platforms) before returning from the attributed method.
public
StringMarshalling
StringMarshalling
Gets or sets an object that specifies how to marshal string arguments to the method.
public
Type
StringMarshallingCustomType
Gets or sets the <see cref="T:System.Type" /> used to control how string arguments to the method are marshalled.
public
object
TypeId
Methods
protected
void
Finalize​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object