SignatureCallingConvention 枚举


指定给定签名中的参数如何从调用方传递到被调用方。 此类型中字段的基础值对应于 SignatureHeader 结构表示的前导签名字节中的表示形式。The underlying values of the fields in this type correspond to the representation in the leading signature byte represented by a SignatureHeader structure.

public enum class SignatureCallingConvention
public enum SignatureCallingConvention
type SignatureCallingConvention = 
Public Enum SignatureCallingConvention


CDecl 1

一个非托管 C/C++ 样式调用约定,其中调用堆栈由调用方清理。An unmanaged C/C++ style calling convention where the call stack is cleaned by the caller.

Default 0

托管调用约定,具有固定长度参数列表。A managed calling convention with a fixed-length argument list.

FastCall 4

非托管调用约定,其中会在可能的情况下将参数传递到寄存器中。An unmanaged calling convention where arguments are passed in registers when possible.

StdCall 2

一个非托管调用约定,其中调用堆栈由被调用方清理。An unmanaged calling convention where the call stack is cleaned up by the callee.

ThisCall 3

非托管 C++ 样式调用约定,具有固定参数列表,用于调用实例成员函数。An unmanaged C++ style calling convention for calling instance member functions with a fixed argument list.

VarArgs 5

托管调用约定,用于传递额外参数。A managed calling convention for passing extra arguments.