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
繼承
SignatureCallingConvention

欄位

CDecl 1

呼叫者已清除呼叫堆疊的 Unmanaged C/C++ 樣式呼叫慣例。An unmanaged C/C++ style calling convention where the call stack is cleaned by the caller.

Default 0

具有固定長度引數清單的 Managed 呼叫慣例。A managed calling convention with a fixed-length argument list.

FastCall 4

引數會傳遞至其中的 Unmanaged 呼叫慣例 (如果可能的話)。An unmanaged calling convention where arguments are passed in registers when possible.

StdCall 2

被呼叫者已清除呼叫堆疊的 Unmanaged 呼叫慣例。An unmanaged calling convention where the call stack is cleaned up by the callee.

ThisCall 3

使用固定引數清單來呼叫執行個體成員函式的 Unmanaged C/C++ 樣式呼叫慣例。An unmanaged C++ style calling convention for calling instance member functions with a fixed argument list.

VarArgs 5

用於傳遞額外引數的 Managed 呼叫慣例。A managed calling convention for passing extra arguments.

適用於