_MethodInfo 介面

定義

重要

此 API 不符合 CLS 規範。

公開 MethodInfo 類別的公用成員至 Unmanaged 程式碼。Exposes the public members of the MethodInfo class to unmanaged code.

public interface class _MethodInfo
[System.CLSCompliant(false)]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("FFCC1B5D-ECB8-38DD-9B01-3DC8ABC2AA5F")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface _MethodInfo
type _MethodInfo = interface
Public Interface _MethodInfo
衍生
屬性

備註

這個介面是用來從非受控程式碼存取 managed 類別,不應從 managed 程式碼呼叫。This interface is for access to managed classes from unmanaged code and should not be called from managed code.

這個介面會保留可由非受控System.Reflection.MethodInfo COM 物件存取之類別成員的 vtable 順序。This interface preserves the vtable order of the System.Reflection.MethodInfo class members that can be accessed by unmanaged COM objects.

屬性

Attributes

為 COM 物件提供與版本無關的 Attributes 屬性之存取權。Provides COM objects with version-independent access to the Attributes property.

CallingConvention

為 COM 物件提供與版本無關的 CallingConvention 屬性之存取權。Provides COM objects with version-independent access to the CallingConvention property.

DeclaringType

為 COM 物件提供與版本無關的 DeclaringType 屬性之存取權。Provides COM objects with version-independent access to the DeclaringType property.

IsAbstract

為 COM 物件提供與版本無關的 IsAbstract 屬性之存取權。Provides COM objects with version-independent access to the IsAbstract property.

IsAssembly

為 COM 物件提供與版本無關的 IsAssembly 屬性之存取權。Provides COM objects with version-independent access to the IsAssembly property.

IsConstructor

為 COM 物件提供與版本無關的 IsConstructor 屬性之存取權。Provides COM objects with version-independent access to the IsConstructor property.

IsFamily

為 COM 物件提供與版本無關的 IsFamily 屬性之存取權。Provides COM objects with version-independent access to the IsFamily property.

IsFamilyAndAssembly

為 COM 物件提供與版本無關的 IsFamilyAndAssembly 屬性之存取權。Provides COM objects with version-independent access to the IsFamilyAndAssembly property.

IsFamilyOrAssembly

為 COM 物件提供與版本無關的 IsFamilyOrAssembly 屬性之存取權。Provides COM objects with version-independent access to the IsFamilyOrAssembly property.

IsFinal

為 COM 物件提供與版本無關的 IsFinal 屬性之存取權。Provides COM objects with version-independent access to the IsFinal property.

IsHideBySig

為 COM 物件提供與版本無關的 IsHideBySig 屬性之存取權。Provides COM objects with version-independent access to the IsHideBySig property.

IsPrivate

為 COM 物件提供與版本無關的 IsPrivate 屬性之存取權。Provides COM objects with version-independent access to the IsPrivate property.

IsPublic

為 COM 物件提供與版本無關的 IsPublic 屬性之存取權。Provides COM objects with version-independent access to the IsPublic property.

IsSpecialName

為 COM 物件提供與版本無關的 IsSpecialName 屬性之存取權。Provides COM objects with version-independent access to the IsSpecialName property.

IsStatic

為 COM 物件提供與版本無關的 IsStatic 屬性之存取權。Provides COM objects with version-independent access to the IsStatic property.

IsVirtual

為 COM 物件提供與版本無關的 IsVirtual 屬性之存取權。Provides COM objects with version-independent access to the IsVirtual property.

MemberType

為 COM 物件提供與版本無關的 MemberType 屬性之存取權。Provides COM objects with version-independent access to the MemberType property.

MethodHandle

為 COM 物件提供與版本無關的 MethodHandle 屬性之存取權。Provides COM objects with version-independent access to the MethodHandle property.

Name

為 COM 物件提供與版本無關的 Name 屬性之存取權。Provides COM objects with version-independent access to the Name property.

ReflectedType

為 COM 物件提供與版本無關的 ReflectedType 屬性之存取權。Provides COM objects with version-independent access to the ReflectedType property.

ReturnType

為 COM 物件提供與版本無關的 ReturnType 屬性之存取權。Provides COM objects with version-independent access to the ReturnType property.

ReturnTypeCustomAttributes

為 COM 物件提供與版本無關的 ReturnTypeCustomAttributes 屬性之存取權。Provides COM objects with version-independent access to the ReturnTypeCustomAttributes property.

方法

Equals(Object)

為 COM 物件提供與版本無關的 Equals(Object) 方法之存取權。Provides COM objects with version-independent access to the Equals(Object) method.

GetBaseDefinition()

為 COM 物件提供與版本無關的 GetBaseDefinition() 方法之存取權。Provides COM objects with version-independent access to the GetBaseDefinition() method.

GetCustomAttributes(Boolean)

為 COM 物件提供與版本無關的 GetCustomAttributes(Boolean) 方法之存取權。Provides COM objects with version-independent access to the GetCustomAttributes(Boolean) method.

GetCustomAttributes(Type, Boolean)

為 COM 物件提供與版本無關的 GetCustomAttributes(Type, Boolean) 方法之存取權。Provides COM objects with version-independent access to the GetCustomAttributes(Type, Boolean) method.

GetHashCode()

為 COM 物件提供與版本無關的 GetHashCode() 方法之存取權。Provides COM objects with version-independent access to the GetHashCode() method.

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

將一組名稱對應至一組對應的分派識別項 (Dispatch Identifier)。Maps a set of names to a corresponding set of dispatch identifiers.

GetMethodImplementationFlags()

為 COM 物件提供與版本無關的 GetMethodImplementationFlags() 方法之存取權。Provides COM objects with version-independent access to the GetMethodImplementationFlags() method.

GetParameters()

為 COM 物件提供與版本無關的 GetParameters() 方法之存取權。Provides COM objects with version-independent access to the GetParameters() method.

GetType()

為 COM 物件提供與版本無關的 GetType() 方法之存取權。Provides COM objects with version-independent access to the GetType() method.

GetTypeInfo(UInt32, UInt32, IntPtr)

擷取物件的類型資訊,可以用來取得介面的類型資訊。Retrieves the type information for an object, which can be used to get the type information for an interface.

GetTypeInfoCount(UInt32)

擷取物件提供的類型資訊介面數目 (0 或 1)。Retrieves the number of type information interfaces that an object provides (either 0 or 1).

Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)

為 COM 物件提供與版本無關的 Invoke(Object, BindingFlags, Binder, Object[], CultureInfo) 方法之存取權。Provides COM objects with version-independent access to the Invoke(Object, BindingFlags, Binder, Object[], CultureInfo) method.

Invoke(Object, Object[])

為 COM 物件提供與版本無關的 Invoke(Object, Object[]) 方法之存取權。Provides COM objects with version-independent access to the Invoke(Object, Object[]) method.

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

提供物件所公開的屬性和方法的存取權。Provides access to properties and methods exposed by an object.

IsDefined(Type, Boolean)

為 COM 物件提供與版本無關的 IsDefined(Type, Boolean) 方法之存取權。Provides COM objects with version-independent access to the IsDefined(Type, Boolean) method.

ToString()

為 COM 物件提供與版本無關的 ToString() 方法之存取權。Provides COM objects with version-independent access to the ToString() method.

適用於