SignatureHelper 類別

定義

提供建置簽章的方法。

public ref class SignatureHelper sealed
public ref class SignatureHelper sealed : System::Runtime::InteropServices::_SignatureHelper
public sealed class SignatureHelper
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
public sealed class SignatureHelper : System.Runtime.InteropServices._SignatureHelper
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class SignatureHelper : System.Runtime.InteropServices._SignatureHelper
type SignatureHelper = class
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
type SignatureHelper = class
    interface _SignatureHelper
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type SignatureHelper = class
    interface _SignatureHelper
Public NotInheritable Class SignatureHelper
Public NotInheritable Class SignatureHelper
Implements _SignatureHelper
繼承
SignatureHelper
屬性
實作

備註

SignatureHelper使用類別建立可傳遞至 SetLocalSignature 類別方法的DynamicILInfo簽章 Blob。 SignatureHelper您也可以將 對象傳遞至 ILGenerator.Emit(OpCode, SignatureHelper) 方法多載,將指令和簽章令牌插入 Microsoft 中繼語言 (MSIL) 數據流中。 如需簽章 Blob 和簽章元數據的相關信息,請參閱 ECMA 分割區 II 元數據檔。

如需詳細資訊,請參閱 ECMA 335 Common Language Infrastructure (CLI)

方法

AddArgument(Type)

加入引數至簽章。

AddArgument(Type, Boolean)

將指定之型別的引數加入簽章,指定該引數是否為固定 (Pin) 。

AddArgument(Type, Type[], Type[])

使用指定的自訂修飾詞,將引數加入簽章。

AddArguments(Type[], Type[][], Type[][])

使用指定的自訂修飾詞,將引數集合加入簽章。

AddSentinel()

標記 vararg 固定部分的結尾。 只有在呼叫端正在建立 vararg 簽章呼叫站台時,這才會使用。

Equals(Object)

檢查這個執行個體 (Instance) 是否等於指定物件。

GetFieldSigHelper(Module)

傳回欄位的簽章 Helper。

GetHashCode()

建立並傳回這個執行個體的雜湊碼。

GetLocalVarSigHelper()

傳回區域變數的簽章 Helper。

GetLocalVarSigHelper(Module)

傳回區域變數的簽章 Helper。

GetMethodSigHelper(CallingConvention, Type)

傳回方法的簽章 Helper,其會指定模組的 Unmanaged 呼叫慣例和傳回型別。

GetMethodSigHelper(CallingConventions, Type)

傳回方法的簽章 Helper,其會指定方法的呼叫慣例和傳回型別。

GetMethodSigHelper(Module, CallingConvention, Type)

傳回方法的簽章 Helper,其會指定方法的模組、Unmanaged 呼叫慣例和傳回型別。

GetMethodSigHelper(Module, CallingConventions, Type)

指定方法的模組、呼叫慣例和傳回類型,以傳回方法的簽章協助程式。

GetMethodSigHelper(Module, Type, Type[])

傳回方法的簽章 Helper,該方法具有標準的呼叫慣例、指定的方法模組、傳回型別和引數型別。

GetPropertySigHelper(Module, CallingConventions, Type, Type[], Type[], Type[], Type[][], Type[][])

以指定的動態模組 (其中包含屬性、呼叫慣例、屬性型別、屬性引數以及傳回型別與引數的自訂修飾詞),傳回屬性的簽章 Helper。

GetPropertySigHelper(Module, Type, Type[])

指定包含屬性、屬性型別和屬性引數的動態模組後,傳回屬性的簽章 Helper。

GetPropertySigHelper(Module, Type, Type[], Type[], Type[], Type[][], Type[][])

指定包含屬性、屬性型別、屬性引數和傳回型別與引數之自訂修飾詞的動態模組後,傳回屬性的簽章 Helper。

GetSignature()

加入結尾語彙基元 (Token) 至簽章,並將簽章標記為已完成,如此其他語彙基元便無法再加入。

GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回表示簽章引數的字串。

明確介面實作

_SignatureHelper.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

將一組名稱對應至一組對應的分派識別項 (Dispatch Identifier)。

_SignatureHelper.GetTypeInfo(UInt32, UInt32, IntPtr)

擷取物件的類型資訊,可以用來取得介面的類型資訊。

_SignatureHelper.GetTypeInfoCount(UInt32)

擷取物件提供的類型資訊介面數目 (0 或 1)。

_SignatureHelper.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

提供物件所公開的屬性和方法的存取權。

適用於