MethodBase 클래스

정의

메서드 및 생성자에 대한 정보를 제공합니다.

public ref class MethodBase abstract : System::Reflection::MemberInfo
public ref class MethodBase abstract : System::Reflection::MemberInfo, System::Runtime::InteropServices::_MethodBase
public abstract class MethodBase : System.Reflection.MemberInfo
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Serializable]
public abstract class MethodBase : System.Reflection.MemberInfo, System.Runtime.InteropServices._MethodBase
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public abstract class MethodBase : System.Reflection.MemberInfo, System.Runtime.InteropServices._MethodBase
type MethodBase = class
    inherit MemberInfo
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Serializable>]
type MethodBase = class
    inherit MemberInfo
    interface _MethodBase
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type MethodBase = class
    inherit MemberInfo
    interface _MethodBase
Public MustInherit Class MethodBase
Inherits MemberInfo
Public MustInherit Class MethodBase
Inherits MemberInfo
Implements _MethodBase
상속
MethodBase
파생
특성
구현

설명

MethodBase 는 및 .의 기본 클래스입니다 MethodInfoConstructorInfo.

구현자 참고

상속MethodBase할 때 다음 멤버GetParameters()를 재정의해야 합니다. , ,Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)GetMethodImplementationFlags(), MethodHandle, NameAttributes, DeclaringType, ReflectedTypeGetCustomAttributes(Boolean)MemberType, GetCustomAttributes(Type, Boolean)및 .IsDefined(Type, Boolean)

생성자

Name Description
MethodBase()

MethodBase 클래스의 새 인스턴스를 초기화합니다.

속성

Name Description
Attributes

이 메서드와 연결된 특성을 가져옵니다.

CallingConvention

이 메서드의 호출 규칙을 나타내는 값을 가져옵니다.

ContainsGenericParameters

제네릭 메서드에 할당되지 않은 제네릭 형식 매개 변수가 포함되어 있는지 여부를 나타내는 값을 가져옵니다.

CustomAttributes

이 멤버의 사용자 지정 특성을 포함하는 컬렉션을 가져옵니다.

(다음에서 상속됨 MemberInfo)
DeclaringType

이 멤버를 선언하는 클래스를 가져옵니다.

(다음에서 상속됨 MemberInfo)
IsAbstract

메서드가 추상인지 여부를 나타내는 값을 가져옵니다.

IsAssembly

이 메서드 또는 생성자의 Assembly잠재적 표시 여부를 나타내는 값을 가져옵니다. 즉, 메서드 또는 생성자가 동일한 어셈블리의 다른 형식에 가장 많이 표시되며 어셈블리 외부의 파생 형식에는 표시되지 않습니다.

IsConstructedGenericMethod

메서드 및 생성자에 대한 정보를 제공합니다.

IsConstructor

메서드가 생성자인지 여부를 나타내는 값을 가져옵니다.

IsFamily

이 메서드 또는 생성자의 Family표시 여부를 나타내는 값을 가져옵니다. 즉, 메서드 또는 생성자가 해당 클래스 및 파생 클래스 내에서만 표시됩니다.

IsFamilyAndAssembly

이 메서드 또는 생성자의 FamANDAssem표시 여부를 나타내는 값을 가져옵니다. 즉, 메서드 또는 생성자는 파생 클래스에서 호출할 수 있지만 동일한 어셈블리에 있는 경우에만 호출할 수 있습니다.

IsFamilyOrAssembly

이 메서드 또는 생성자의 FamORAssem잠재적 표시 여부를 나타내는 값을 가져옵니다. 즉, 메서드 또는 생성자가 어디에 있든 파생 클래스 및 동일한 어셈블리의 클래스에서 호출할 수 있습니다.

IsFinal

이 메서드 final가 .인지 여부를 나타내는 값을 가져옵니다.

IsGenericMethod

메서드가 제네릭인지 여부를 나타내는 값을 가져옵니다.

IsGenericMethodDefinition

메서드가 제네릭 메서드 정의인지 여부를 나타내는 값을 가져옵니다.

IsHideBySig

정확히 동일한 시그니처를 가진 동일한 종류의 멤버만 파생 클래스에 숨겨져 있는지 여부를 나타내는 값을 가져옵니다.

IsPrivate

이 멤버가 프라이빗인지 여부를 나타내는 값을 가져옵니다.

IsPublic

public 메서드인지 여부를 나타내는 값을 가져옵니다.

IsSecurityCritical

현재 메서드 또는 생성자가 현재 신뢰 수준에서 보안에 중요하거나 보안이 안전한지 여부를 나타내는 값을 가져오므로 중요한 작업을 수행할 수 있습니다.

IsSecuritySafeCritical

현재 메서드 또는 생성자가 현재 신뢰 수준에서 보안에 중요한지 여부를 나타내는 값을 가져옵니다. 즉, 중요한 작업을 수행할 수 있고 투명 코드로 액세스할 수 있는지 여부입니다.

IsSecurityTransparent

현재 메서드 또는 생성자가 현재 신뢰 수준에서 투명하므로 중요한 작업을 수행할 수 없는지 여부를 나타내는 값을 가져옵니다.

IsSpecialName

이 메서드에 특별한 이름이 있는지 여부를 나타내는 값을 가져옵니다.

IsStatic

메서드 static가 .인지 여부를 나타내는 값을 가져옵니다.

IsVirtual

메서드 virtual가 .인지 여부를 나타내는 값을 가져옵니다.

MemberType

파생 클래스에서 재정의되는 경우 메서드, 생성자, 이벤트 등 멤버의 형식을 나타내는 값을 가져옵니다 MemberTypes .

(다음에서 상속됨 MemberInfo)
MetadataToken

메타데이터 요소를 식별하는 값을 가져옵니다.

(다음에서 상속됨 MemberInfo)
MethodHandle

메서드의 내부 메타데이터 표현에 대한 핸들을 가져옵니다.

MethodImplementationFlags

메서드 구현의 MethodImplAttributes 특성을 지정하는 플래그를 가져옵니다.

Module

현재 MemberInfo 가 나타내는 멤버를 선언하는 형식이 정의된 모듈을 가져옵니다.

(다음에서 상속됨 MemberInfo)
Name

현재 멤버의 이름을 가져옵니다.

(다음에서 상속됨 MemberInfo)
ReflectedType

이 인스턴스를 가져오는 데 사용된 클래스 개체를 MemberInfo가져옵니다.

(다음에서 상속됨 MemberInfo)

메서드

Name Description
Equals(Object)

이 인스턴스가 지정된 개체와 같은지 여부를 나타내는 값을 반환합니다.

GetCurrentMethod()

MethodBase 현재 실행 중인 메서드를 나타내는 개체를 반환합니다.

GetCustomAttributes(Boolean)

파생 클래스에서 재정의되는 경우 이 멤버에 적용된 모든 사용자 지정 특성의 배열을 반환합니다.

(다음에서 상속됨 MemberInfo)
GetCustomAttributes(Type, Boolean)

파생 클래스에서 재정의된 경우 이 멤버에 적용되고 식별된 Type사용자 지정 특성 배열을 반환합니다.

(다음에서 상속됨 MemberInfo)
GetCustomAttributesData()

대상 멤버에 적용된 특성에 대한 데이터를 나타내는 개체 목록을 CustomAttributeData 반환합니다.

(다음에서 상속됨 MemberInfo)
GetGenericArguments()

제네릭 메서드의 Type 형식 인수 또는 제네릭 메서드 정의의 형식 매개 변수를 나타내는 개체의 배열을 반환합니다.

GetHashCode()

이 인스턴스의 해시 코드를 반환합니다.

GetMethodBody()

파생 클래스에서 재정의되는 경우 현재 메서드에 대한 MSIL 스트림, 지역 변수 및 예외에 대한 액세스를 제공하는 개체를 가져옵니다 MethodBody .

GetMethodFromHandle(RuntimeMethodHandle, RuntimeTypeHandle)

지정한 MethodBase 제네릭 형식에 대해 지정된 핸들이 나타내는 생성자 또는 메서드의 개체를 가져옵니다.

GetMethodFromHandle(RuntimeMethodHandle)

메서드의 내부 메타데이터 표현(핸들)을 사용하여 메서드 정보를 가져옵니다.

GetMethodImplementationFlags()

파생 클래스에서 재정의되는 경우 플래그를 반환합니다 MethodImplAttributes .

GetParameters()

파생 클래스에서 재정의되는 경우 지정된 메서드 또는 생성자의 매개 변수를 가져옵니다.

GetType()

메서드 및 생성자에 대한 정보를 제공합니다.

HasSameMetadataDefinitionAs(MemberInfo)

메서드 및 생성자에 대한 정보를 제공합니다.

(다음에서 상속됨 MemberInfo)
Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)

파생 클래스에서 재정의되는 경우 지정된 매개 변수를 사용하여 반영된 메서드 또는 생성자를 호출합니다.

Invoke(Object, Object[])

지정된 매개 변수를 사용하여 현재 인스턴스가 나타내는 메서드 또는 생성자를 호출합니다.

IsDefined(Type, Boolean)

파생 클래스에서 재정의되는 경우 지정된 형식 또는 파생 형식의 하나 이상의 특성이 이 멤버에 적용되는지 여부를 나타냅니다.

(다음에서 상속됨 MemberInfo)
MemberwiseClone()

현재 Object단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

연산자

Name Description
Equality(MethodBase, MethodBase)

MethodBase 개체가 같은지 여부를 나타냅니다.

Inequality(MethodBase, MethodBase)

MethodBase 개체가 같지 않은지 여부를 나타냅니다.

명시적 인터페이스 구현

Name Description
_MemberInfo.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

이름 집합을 해당 디스패치 식별자 집합에 매핑합니다.

(다음에서 상속됨 MemberInfo)
_MemberInfo.GetType()

클래스를 Type 나타내는 개체를 MemberInfo 가져옵니다.

(다음에서 상속됨 MemberInfo)
_MemberInfo.GetTypeInfo(UInt32, UInt32, IntPtr)

인터페이스의 형식 정보를 가져오는 데 사용할 수 있는 개체의 형식 정보를 검색합니다.

(다음에서 상속됨 MemberInfo)
_MemberInfo.GetTypeInfoCount(UInt32)

개체가 제공하는 형식 정보 인터페이스의 수를 검색합니다(0 또는 1).

(다음에서 상속됨 MemberInfo)
_MemberInfo.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

개체에 의해 노출되는 속성 및 메서드에 대한 액세스를 제공합니다.

(다음에서 상속됨 MemberInfo)
_MethodBase.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

이름 집합을 해당 디스패치 식별자 집합에 매핑합니다.

_MethodBase.GetType()

이 멤버에 대한 설명은 을 참조하세요 GetType().

_MethodBase.GetTypeInfo(UInt32, UInt32, IntPtr)

인터페이스의 형식 정보를 가져오는 데 사용할 수 있는 개체의 형식 정보를 검색합니다.

_MethodBase.GetTypeInfoCount(UInt32)

개체가 제공하는 형식 정보 인터페이스의 수를 검색합니다(0 또는 1).

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

개체에 의해 노출되는 속성 및 메서드에 대한 액세스를 제공합니다.

_MethodBase.IsAbstract

이 멤버에 대한 설명은 을 참조하세요 IsAbstract.

_MethodBase.IsAssembly

이 멤버에 대한 설명은 을 참조하세요 IsAssembly.

_MethodBase.IsConstructor

이 멤버에 대한 설명은 을 참조하세요 IsConstructor.

_MethodBase.IsFamily

이 멤버에 대한 설명은 을 참조하세요 IsFamily.

_MethodBase.IsFamilyAndAssembly

이 멤버에 대한 설명은 을 참조하세요 IsFamilyAndAssembly.

_MethodBase.IsFamilyOrAssembly

이 멤버에 대한 설명은 을 참조하세요 IsFamilyOrAssembly.

_MethodBase.IsFinal

이 멤버에 대한 설명은 을 참조하세요 IsFinal.

_MethodBase.IsHideBySig

이 멤버에 대한 설명은 을 참조하세요 IsHideBySig.

_MethodBase.IsPrivate

이 멤버에 대한 설명은 을 참조하세요 IsPrivate.

_MethodBase.IsPublic

이 멤버에 대한 설명은 을 참조하세요 IsPublic.

_MethodBase.IsSpecialName

이 멤버에 대한 설명은 을 참조하세요 IsSpecialName.

_MethodBase.IsStatic

이 멤버에 대한 설명은 을 참조하세요 IsStatic.

_MethodBase.IsVirtual

이 멤버에 대한 설명은 을 참조하세요 IsVirtual.

ICustomAttributeProvider.GetCustomAttributes(Boolean)

명명된 특성을 제외하고 이 멤버에 정의된 모든 사용자 지정 특성의 배열을 반환하거나 사용자 지정 특성이 없는 경우 빈 배열을 반환합니다.

(다음에서 상속됨 MemberInfo)
ICustomAttributeProvider.GetCustomAttributes(Type, Boolean)

형식으로 식별되는 이 멤버에 정의된 사용자 지정 특성의 배열을 반환하거나, 해당 형식의 사용자 지정 특성이 없는 경우 빈 배열을 반환합니다.

(다음에서 상속됨 MemberInfo)
ICustomAttributeProvider.IsDefined(Type, Boolean)

하나 이상의 인스턴스 attributeType 가 이 멤버에 정의되어 있는지 여부를 나타냅니다.

(다음에서 상속됨 MemberInfo)

확장명 메서드

Name Description
GetCustomAttribute(MemberInfo, Type, Boolean)

지정된 멤버에 적용되는 지정된 형식의 사용자 지정 특성을 검색하고 필요에 따라 해당 멤버의 상위 항목을 검사합니다.

GetCustomAttribute(MemberInfo, Type)

지정된 멤버에 적용되는 지정된 형식의 사용자 지정 특성을 검색합니다.

GetCustomAttribute<T>(MemberInfo, Boolean)

지정된 멤버에 적용되는 지정된 형식의 사용자 지정 특성을 검색하고 필요에 따라 해당 멤버의 상위 항목을 검사합니다.

GetCustomAttribute<T>(MemberInfo)

지정된 멤버에 적용되는 지정된 형식의 사용자 지정 특성을 검색합니다.

GetCustomAttributes(MemberInfo, Boolean)

지정된 멤버에 적용되는 사용자 지정 특성의 컬렉션을 검색하고 필요에 따라 해당 멤버의 상위 항목을 검사합니다.

GetCustomAttributes(MemberInfo, Type, Boolean)

지정된 멤버에 적용되는 지정된 형식의 사용자 지정 특성 컬렉션을 검색하고 필요에 따라 해당 멤버의 상위 항목을 검사합니다.

GetCustomAttributes(MemberInfo, Type)

지정된 멤버에 적용되는 지정된 형식의 사용자 지정 특성 컬렉션을 검색합니다.

GetCustomAttributes(MemberInfo)

지정된 멤버에 적용되는 사용자 지정 특성의 컬렉션을 검색합니다.

GetCustomAttributes<T>(MemberInfo, Boolean)

지정된 멤버에 적용되는 지정된 형식의 사용자 지정 특성 컬렉션을 검색하고 필요에 따라 해당 멤버의 상위 항목을 검사합니다.

GetCustomAttributes<T>(MemberInfo)

지정된 멤버에 적용되는 지정된 형식의 사용자 지정 특성 컬렉션을 검색합니다.

IsDefined(MemberInfo, Type, Boolean)

지정된 형식의 사용자 지정 특성이 지정된 멤버에 적용되는지 여부와 필요에 따라 상위 항목에 적용되는지 여부를 나타냅니다.

IsDefined(MemberInfo, Type)

지정된 형식의 사용자 지정 특성이 지정된 멤버에 적용되는지 여부를 나타냅니다.

적용 대상

스레드 보안

이 형식은 스레드로부터 안전합니다.