Uređivanje

Dijeli putem


MarshalMode Enum

Definition

Represents the different marshalling modes.

public enum class MarshalMode
public enum MarshalMode
type MarshalMode = 
Public Enum MarshalMode
Inheritance
MarshalMode

Fields

Name Value Description
Default 0

All modes. A marshaller specified with this mode will be used if there's no specific marshaller for a given usage mode.

ManagedToUnmanagedIn 1

By-value and in parameters in managed-to-unmanaged scenarios, like P/Invoke.

ManagedToUnmanagedRef 2

ref parameters in managed-to-unmanaged scenarios, like P/Invoke.

ManagedToUnmanagedOut 3

out parameters in managed-to-unmanaged scenarios, like P/Invoke.

UnmanagedToManagedIn 4

By-value and in parameters in unmanaged-to-managed scenarios, like Reverse P/Invoke.

UnmanagedToManagedRef 5

ref parameters in unmanaged-to-managed scenarios, like Reverse P/Invoke.

UnmanagedToManagedOut 6

out parameters in unmanaged-to-managed scenarios, like Reverse P/Invoke.

ElementIn 7

Elements of arrays passed with in or by-value in interop scenarios.

ElementRef 8

Elements of arrays passed with ref or passed by-value with both InAttribute and OutAttribute in interop scenarios.

ElementOut 9

Elements of arrays passed with out or passed by-value with only OutAttribute in interop scenarios.

Applies to