_MethodBuilder 介面

定義

重要

此 API 不符合 CLS 規範。

MethodBuilder 類別公開到 Unmanaged 程式碼。

public interface class _MethodBuilder
[System.CLSCompliant(false)]
[System.Runtime.InteropServices.Guid("007D8A14-FDF3-363E-9A0B-FEC0618260A2")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface _MethodBuilder
[System.CLSCompliant(false)]
[System.Runtime.InteropServices.Guid("007D8A14-FDF3-363E-9A0B-FEC0618260A2")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
[System.Runtime.InteropServices.ComVisible(true)]
public interface _MethodBuilder
[<System.CLSCompliant(false)>]
[<System.Runtime.InteropServices.Guid("007D8A14-FDF3-363E-9A0B-FEC0618260A2")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type _MethodBuilder = interface
[<System.CLSCompliant(false)>]
[<System.Runtime.InteropServices.Guid("007D8A14-FDF3-363E-9A0B-FEC0618260A2")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type _MethodBuilder = interface
Public Interface _MethodBuilder
衍生
屬性

備註

此介面適用于從 Unmanaged 程式碼存取 Managed 類別,不應從 Managed 程式碼呼叫。

方法

GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

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

GetTypeInfo(UInt32, UInt32, IntPtr)

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

GetTypeInfoCount(UInt32)

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

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

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

適用於