SignatureHelper 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供建立簽名的方法。
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 類別建立一個簽名 blob,然後傳給 SetLocalSignature 該類別的方法 DynamicILInfo 。 SignatureHelper 物件也可以傳遞給 ILGenerator.Emit(OpCode, SignatureHelper) 方法過載,將指令與簽章標記插入 Microsoft 中介語言(MSIL)串流中。 有關簽章塊與簽章中繼資料的資訊,請參閱 ECMA 分割區 II 中繼資料文件。
欲了解更多資訊,請參閱 ECMA 335 通用語言基礎架構(CLI)。
方法
明確介面實作
| 名稱 | Description |
|---|---|
| _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) |
提供物件所公開屬性和方法的存取權。 |