MethodBase 클래스
정의
메서드와 생성자에 대한 정보를 제공합니다.Provides information about methods and constructors.
public ref class MethodBase abstract : System::Reflection::MemberInfo, System::Runtime::InteropServices::_MethodBase
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public abstract class MethodBase : System.Reflection.MemberInfo, System.Runtime.InteropServices._MethodBase
type MethodBase = class
inherit MemberInfo
interface _MethodBase
Public MustInherit Class MethodBase
Inherits MemberInfo
Implements _MethodBase
- 상속
- 파생
- 특성
- 구현
설명
MethodBase
기본 클래스인 MethodInfo 고 ConstructorInfo입니다.MethodBase
is the base class of MethodInfo and ConstructorInfo.
구현자 참고
상속 하는 경우 MethodBase
, 다음 멤버를 재정의 해야 합니다: GetParameters(), Invoke(Object, BindingFlags, Binder, Object[], CultureInfo), GetMethodImplementationFlags(), MethodHandle를 Attributes, Name, DeclaringType, MemberType를 ReflectedType, GetCustomAttributes(Boolean) 하십시오 GetCustomAttributes(Type, Boolean), 및 IsDefined(Type, Boolean)합니다.When you inherit from MethodBase
, you must override the following members: GetParameters(), Invoke(Object, BindingFlags, Binder, Object[], CultureInfo), GetMethodImplementationFlags(), MethodHandle, Attributes, Name, DeclaringType, MemberType, ReflectedType, GetCustomAttributes(Boolean), GetCustomAttributes(Type, Boolean), and IsDefined(Type, Boolean).
생성자
MethodBase() |
MethodBase 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the MethodBase class. |
속성
Attributes |
이 메서드와 관련된 특성을 가져옵니다.Gets the attributes associated with this method. |
CallingConvention |
이 메서드에 대한 호출 규칙을 나타내는 값을 가져옵니다.Gets a value indicating the calling conventions for this method. |
ContainsGenericParameters |
제네릭 메서드에 할당되지 않은 제네릭 형식 매개 변수가 포함되어 있는지 여부를 나타내는 값을 가져옵니다.Gets a value indicating whether the generic method contains unassigned generic type parameters. |
CustomAttributes |
이 멤버의 사용자 지정 특성을 포함하는 컬렉션을 가져옵니다.Gets a collection that contains this member's custom attributes. (다음에서 상속됨 MemberInfo) |
DeclaringType |
이 멤버를 선언하는 클래스를 가져옵니다.Gets the class that declares this member. (다음에서 상속됨 MemberInfo) |
IsAbstract |
이 메서드가 추상 메서드인지 여부를 나타내는 값을 가져옵니다.Gets a value indicating whether the method is abstract. |
IsAssembly |
Assembly에서 이 메서드나 생성자의 잠재적 표시 유형을 설명하는지 여부를 나타내는 값을 가져옵니다. 즉, 이 메서드나 생성자는 같은 어셈블리의 다른 형식에만 표시되고 어셈블리 외부의 파생 형식에는 표시되지 않습니다.Gets a value indicating whether the potential visibility of this method or constructor is described by Assembly; that is, the method or constructor is visible at most to other types in the same assembly, and is not visible to derived types outside the assembly. |
IsCollectible |
이 MemberInfo 개체가 수집 가능한 AssemblyLoadContext에 보관된 어셈블리의 일부인지 여부를 나타내는 값을 가져옵니다.Gets a value that indicates whether this MemberInfo object is part of an assembly held in a collectible AssemblyLoadContext. (다음에서 상속됨 MemberInfo) |
IsConstructedGenericMethod | |
IsConstructor |
메서드가 생성자인지 여부를 나타내는 값을 가져옵니다.Gets a value indicating whether the method is a constructor. |
IsFamily |
Family에서 이 메서드나 생성자의 표시 유형을 설명하는지 여부를 나타내는 값을 가져옵니다. 즉, 이 메서드나 생성자는 해당 클래스 및 파생 클래스에만 표시됩니다.Gets a value indicating whether the visibility of this method or constructor is described by Family; that is, the method or constructor is visible only within its class and derived classes. |
IsFamilyAndAssembly |
FamANDAssem에서 이 메서드나 생성자의 표시 유형을 설명하는지 여부를 나타내는 값을 가져옵니다. 즉, 이 메서드나 생성자는 같은 어셈블리에 있는 경우에만 파생 클래스에서 호출할 수 있습니다.Gets a value indicating whether the visibility of this method or constructor is described by FamANDAssem; that is, the method or constructor can be called by derived classes, but only if they are in the same assembly. |
IsFamilyOrAssembly |
FamORAssem에서 이 메서드나 생성자의 잠재적 표시 유형을 설명하는지 여부를 나타내는 값을 가져옵니다. 즉, 이 메서드나 생성자는 파생 클래스(있는 경우) 및 같은 어셈블리의 클래스에서 호출할 수 있습니다.Gets a value indicating whether the potential visibility of this method or constructor is described by FamORAssem; that is, the method or constructor can be called by derived classes wherever they are, and by classes in the same assembly. |
IsFinal |
이 메서드가 |
IsGenericMethod |
메서드가 제네릭 메서드인지 여부를 나타내는 값을 가져옵니다.Gets a value indicating whether the method is generic. |
IsGenericMethodDefinition |
메서드가 제네릭 메서드 정의인지 여부를 나타내는 값을 가져옵니다.Gets a value indicating whether the method is a generic method definition. |
IsHideBySig |
동일한 시그니처가 있는 동일한 종류의 멤버만을 파생 클래스에서 숨길 수 있는지 여부를 나타내는 값을 가져옵니다.Gets a value indicating whether only a member of the same kind with exactly the same signature is hidden in the derived class. |
IsPrivate |
이 멤버가 프라이빗인지 여부를 나타내는 값을 가져옵니다.Gets a value indicating whether this member is private. |
IsPublic |
이 메서드가 public 메서드인지 여부를 나타내는 값을 가져옵니다.Gets a value indicating whether this is a public method. |
IsSecurityCritical |
현재 메서드나 생성자가 현재 신뢰 수준에서 보안에 중요한 형식이거나 보안 안전에 중요한 형식이어서 중요한 작업을 수행할 수 있는지 여부를 나타내는 값을 가져옵니다.Gets a value that indicates whether the current method or constructor is security-critical or security-safe-critical at the current trust level, and therefore can perform critical operations. |
IsSecuritySafeCritical |
현재 메서드나 생성자가 현재 신뢰 수준에서 보안 안전에 중요한 형식인지 즉, 중요한 작업을 수행할 수 있고 투명 코드로 액세스할 수 있는지 여부를 나타내는 값을 가져옵니다.Gets a value that indicates whether the current method or constructor is security-safe-critical at the current trust level; that is, whether it can perform critical operations and can be accessed by transparent code. |
IsSecurityTransparent |
현재 메서드나 생성자가 현재 신뢰 수준에서 투명하여 중요한 작업을 수행할 수 없는지 여부를 나타내는 값을 가져옵니다.Gets a value that indicates whether the current method or constructor is transparent at the current trust level, and therefore cannot perform critical operations. |
IsSpecialName |
이 메서드의 이름이 특수한지 여부를 나타내는 값을 가져옵니다.Gets a value indicating whether this method has a special name. |
IsStatic |
메서드가 |
IsVirtual |
메서드가 |
MemberType |
파생 클래스에서 재정의될 경우 멤버의 형식(메서드, 생성자, 이벤트 등)을 나타내는 MemberTypes 값을 가져옵니다.When overridden in a derived class, gets a MemberTypes value indicating the type of the member - method, constructor, event, and so on. (다음에서 상속됨 MemberInfo) |
MetadataToken |
메타데이터 요소를 식별하는 값을 가져옵니다.Gets a value that identifies a metadata element. (다음에서 상속됨 MemberInfo) |
MethodHandle |
메서드의 내부 메타데이터 표현에 대한 핸들을 가져옵니다.Gets a handle to the internal metadata representation of a method. |
MethodImplementationFlags |
메서드 구현의 특성을 지정하는 MethodImplAttributes 플래그를 가져옵니다.Gets the MethodImplAttributes flags that specify the attributes of a method implementation. |
Module |
현재 MemberInfo가 나타내는 멤버를 선언하는 형식이 정의된 모듈을 가져옵니다.Gets the module in which the type that declares the member represented by the current MemberInfo is defined. (다음에서 상속됨 MemberInfo) |
Name |
현재 멤버의 이름을 가져옵니다.Gets the name of the current member. (다음에서 상속됨 MemberInfo) |
ReflectedType |
|
메서드
Equals(Object) |
이 인스턴스가 지정한 개체와 같은지를 나타내는 값을 반환합니다.Returns a value that indicates whether this instance is equal to a specified object. |
GetCurrentMethod() |
실행 중인 메서드를 나타내는 |
GetCustomAttributes(Boolean) |
파생 클래스에서 재정의되는 경우 이 멤버에 적용된 모든 사용자 지정 특성의 배열을 반환합니다.When overridden in a derived class, returns an array of all custom attributes applied to this member. (다음에서 상속됨 MemberInfo) |
GetCustomAttributes(Type, Boolean) |
파생된 클래스에서 재정의하는 경우 이 멤버에 적용되고 Type으로 식별되는 사용자 지정 특성의 배열을 반환합니다.When overridden in a derived class, returns an array of custom attributes applied to this member and identified by Type. (다음에서 상속됨 MemberInfo) |
GetCustomAttributesData() |
대상 멤버에 적용된 특성에 대한 데이터를 나타내는 CustomAttributeData 개체의 목록을 반환합니다.Returns a list of CustomAttributeData objects representing data about the attributes that have been applied to the target member. (다음에서 상속됨 MemberInfo) |
GetGenericArguments() |
제네릭 메서드의 형식 인수나 제네릭 메서드 정의의 형식 매개 변수를 나타내는 Type 개체의 배열을 반환합니다.Returns an array of Type objects that represent the type arguments of a generic method or the type parameters of a generic method definition. |
GetHashCode() |
이 인스턴스의 해시 코드를 반환합니다.Returns the hash code for this instance. |
GetMethodBody() |
파생 클래스에서 재정의된 경우, 현재 메서드의 MSIL 스트림, 지역 변수 및 예외에 액세스할 수 있도록 하는 MethodBody 개체를 가져옵니다.When overridden in a derived class, gets a MethodBody object that provides access to the MSIL stream, local variables, and exceptions for the current method. |
GetMethodFromHandle(RuntimeMethodHandle) |
메서드의 내부 메타데이터 표현(핸들)을 사용하여 메서드 정보를 가져옵니다.Gets method information by using the method's internal metadata representation (handle). |
GetMethodFromHandle(RuntimeMethodHandle, RuntimeTypeHandle) |
지정된 제네릭 형식에 대해 지정된 핸들이 나타내는 생성자 또는 메서드의 MethodBase 개체를 가져옵니다.Gets a MethodBase object for the constructor or method represented by the specified handle, for the specified generic type. |
GetMethodImplementationFlags() |
파생 클래스에서 재정의할 때 MethodImplAttributes 플래그를 반환합니다.When overridden in a derived class, returns the MethodImplAttributes flags. |
GetParameters() |
파생 클래스에서 재정의되면 지정한 메서드나 생성자의 매개 변수를 가져옵니다.When overridden in a derived class, gets the parameters of the specified method or constructor. |
GetType() | |
HasSameMetadataDefinitionAs(MemberInfo) | (다음에서 상속됨 MemberInfo) |
Invoke(Object, BindingFlags, Binder, Object[], CultureInfo) |
파생 클래스에서 재정의된 경우, 지정된 매개 변수를 사용하여 리플렉션된 메서드나 생성자를 호출합니다.When overridden in a derived class, invokes the reflected method or constructor with the given parameters. |
Invoke(Object, Object[]) |
지정된 매개 변수를 사용하여 현재 인스턴스로 나타낸 메서드 또는 생성자를 호출합니다.Invokes the method or constructor represented by the current instance, using the specified parameters. |
IsDefined(Type, Boolean) |
파생 클래스에서 재정의되는 경우 지정된 형식 또는 파생 형식의 특성이 하나 이상 이 멤버에 적용되는지 여부를 나타냅니다.When overridden in a derived class, indicates whether one or more attributes of the specified type or of its derived types is applied to this member. (다음에서 상속됨 MemberInfo) |
MemberwiseClone() |
현재 Object의 단순 복사본을 만듭니다.Creates a shallow copy of the current Object. (다음에서 상속됨 Object) |
ToString() |
현재 개체를 나타내는 문자열을 반환합니다.Returns a string that represents the current object. (다음에서 상속됨 Object) |
연산자
Equality(MethodBase, MethodBase) |
두 MethodBase 개체가 같은지를 나타냅니다.Indicates whether two MethodBase objects are equal. |
Inequality(MethodBase, MethodBase) |
두 MethodBase 개체가 같지 않은지를 나타냅니다.Indicates whether two MethodBase objects are not equal. |
명시적 인터페이스 구현
_MemberInfo.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) |
이름 집합을 해당하는 디스패치 식별자 집합에 매핑합니다.Maps a set of names to a corresponding set of dispatch identifiers. (다음에서 상속됨 MemberInfo) |
_MemberInfo.GetType() |
Type 클래스를 나타내는 MemberInfo 개체를 가져옵니다.Gets a Type object representing the MemberInfo class. (다음에서 상속됨 MemberInfo) |
_MemberInfo.GetTypeInfo(UInt32, UInt32, IntPtr) |
인터페이스의 형식 정보를 가져오는 데 사용할 수 있는 개체의 형식 정보를 검색합니다.Retrieves the type information for an object, which can then be used to get the type information for an interface. (다음에서 상속됨 MemberInfo) |
_MemberInfo.GetTypeInfoCount(UInt32) |
개체에서 제공하는 형식 정보 인터페이스의 수를 검색합니다(0 또는 1).Retrieves the number of type information interfaces that an object provides (either 0 or 1). (다음에서 상속됨 MemberInfo) |
_MemberInfo.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) |
개체에서 노출하는 메서드와 속성에 대한 액세스를 제공합니다.Provides access to properties and methods exposed by an object. (다음에서 상속됨 MemberInfo) |
_MethodBase.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) |
이름 집합을 해당하는 디스패치 식별자 집합에 매핑합니다.Maps a set of names to a corresponding set of dispatch identifiers. |
_MethodBase.GetType() |
이 멤버에 대한 설명은 GetType()를 참조하세요.For a description of this member, see GetType(). |
_MethodBase.GetTypeInfo(UInt32, UInt32, IntPtr) |
인터페이스의 형식 정보를 가져오는 데 사용할 수 있는 개체의 형식 정보를 검색합니다.Retrieves the type information for an object, which can then be used to get the type information for an interface. |
_MethodBase.GetTypeInfoCount(UInt32) |
개체에서 제공하는 형식 정보 인터페이스의 수를 검색합니다(0 또는 1).Retrieves the number of type information interfaces that an object provides (either 0 or 1). |
_MethodBase.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) |
개체에서 노출하는 메서드와 속성에 대한 액세스를 제공합니다.Provides access to properties and methods exposed by an object. |
_MethodBase.IsAbstract |
이 멤버에 대한 설명은 IsAbstract를 참조하세요.For a description of this member, see IsAbstract. |
_MethodBase.IsAssembly |
이 멤버에 대한 설명은 IsAssembly를 참조하세요.For a description of this member, see IsAssembly. |
_MethodBase.IsConstructor |
이 멤버에 대한 설명은 IsConstructor를 참조하세요.For a description of this member, see IsConstructor. |
_MethodBase.IsFamily |
이 멤버에 대한 설명은 IsFamily를 참조하세요.For a description of this member, see IsFamily. |
_MethodBase.IsFamilyAndAssembly |
이 멤버에 대한 설명은 IsFamilyAndAssembly를 참조하세요.For a description of this member, see IsFamilyAndAssembly. |
_MethodBase.IsFamilyOrAssembly |
이 멤버에 대한 설명은 IsFamilyOrAssembly를 참조하세요.For a description of this member, see IsFamilyOrAssembly. |
_MethodBase.IsFinal |
이 멤버에 대한 설명은 IsFinal를 참조하세요.For a description of this member, see IsFinal. |
_MethodBase.IsHideBySig |
이 멤버에 대한 설명은 IsHideBySig를 참조하세요.For a description of this member, see IsHideBySig. |
_MethodBase.IsPrivate |
이 멤버에 대한 설명은 IsPrivate를 참조하세요.For a description of this member, see IsPrivate. |
_MethodBase.IsPublic |
이 멤버에 대한 설명은 IsPublic를 참조하세요.For a description of this member, see IsPublic. |
_MethodBase.IsSpecialName |
이 멤버에 대한 설명은 IsSpecialName를 참조하세요.For a description of this member, see IsSpecialName. |
_MethodBase.IsStatic |
이 멤버에 대한 설명은 IsStatic를 참조하세요.For a description of this member, see IsStatic. |
_MethodBase.IsVirtual |
이 멤버에 대한 설명은 IsVirtual를 참조하세요.For a description of this member, see IsVirtual. |
ICustomAttributeProvider.GetCustomAttributes(Boolean) | (다음에서 상속됨 MemberInfo) |
ICustomAttributeProvider.GetCustomAttributes(Type, Boolean) | (다음에서 상속됨 MemberInfo) |
ICustomAttributeProvider.IsDefined(Type, Boolean) | (다음에서 상속됨 MemberInfo) |
확장 메서드
GetCustomAttribute(MemberInfo, Type) |
지정된 멤버에 적용된 지정된 형식의 사용자 지정 특성을 검색합니다.Retrieves a custom attribute of a specified type that is applied to a specified member. |
GetCustomAttribute(MemberInfo, Type, Boolean) |
지정된 형식의 사용자 지정 특성이 지정된 멤버에 적용되는 컬렉션을 검색하거나 선택적으로 해당 멤버의 상위 항목을 검사합니다.Retrieves a custom attribute of a specified type that is applied to a specified member, and optionally inspects the ancestors of that member. |
GetCustomAttribute<T>(MemberInfo) |
지정된 멤버에 적용된 지정된 형식의 사용자 지정 특성을 검색합니다.Retrieves a custom attribute of a specified type that is applied to a specified member. |
GetCustomAttribute<T>(MemberInfo, Boolean) |
지정된 형식의 사용자 지정 특성이 지정된 멤버에 적용되는 컬렉션을 검색하거나 선택적으로 해당 멤버의 상위 항목을 검사합니다.Retrieves a custom attribute of a specified type that is applied to a specified member, and optionally inspects the ancestors of that member. |
GetCustomAttributes(MemberInfo) |
지정된 멤버에 적용된 사용자 지정 특성 컬렉션을 검색합니다.Retrieves a collection of custom attributes that are applied to a specified member. |
GetCustomAttributes(MemberInfo, Boolean) |
사용자 지정 특성이 지정된 멤버에 적용되는 컬렉션을 검색하거나 선택적으로 해당 멤버의 상위 항목을 검사합니다.Retrieves a collection of custom attributes that are applied to a specified member, and optionally inspects the ancestors of that member. |
GetCustomAttributes(MemberInfo, Type) |
지정된 멤버에 적용된 지정된 형식의 사용자 지정 특성 컬렉션을 검색합니다.Retrieves a collection of custom attributes of a specified type that are applied to a specified member. |
GetCustomAttributes(MemberInfo, Type, Boolean) |
지정된 형식의 사용자 지정 특성이 지정된 멤버에 적용되는 컬렉션을 검색하거나 선택적으로 해당 멤버의 상위 항목을 검사합니다.Retrieves a collection of custom attributes of a specified type that are applied to a specified member, and optionally inspects the ancestors of that member. |
GetCustomAttributes<T>(MemberInfo) |
지정된 멤버에 적용된 지정된 형식의 사용자 지정 특성 컬렉션을 검색합니다.Retrieves a collection of custom attributes of a specified type that are applied to a specified member. |
GetCustomAttributes<T>(MemberInfo, Boolean) |
지정된 형식의 사용자 지정 특성이 지정된 멤버에 적용되는 컬렉션을 검색하거나 선택적으로 해당 멤버의 상위 항목을 검사합니다.Retrieves a collection of custom attributes of a specified type that are applied to a specified member, and optionally inspects the ancestors of that member. |
IsDefined(MemberInfo, Type) |
지정된 형식의 사용자 지정 특성이 지정된 멤버에 적용되었는지 여부를 나타냅니다.Indicates whether custom attributes of a specified type are applied to a specified member. |
IsDefined(MemberInfo, Type, Boolean) |
지정된 형식의 사용자 지정 특성이 지정된 멤버에 적용되었는지, 또는 선택적으로 상위 항목에 적용되었는지 여부를 결정합니다.Indicates whether custom attributes of a specified type are applied to a specified member, and, optionally, applied to its ancestors. |
GetMetadataToken(MemberInfo) |
사용 가능한 경우 지정된 멤버의 메타데이터 토큰을 가져옵니다.Gets a metadata token for the given member, if available. |
HasMetadataToken(MemberInfo) |
지정된 멤버에 대해 메타데이터 토큰을 사용할 수 있는지를 나타내는 값을 반환합니다.Returns a value that indicates whether a metadata token is available for the specified member. |
보안
InheritanceDemand
상속자의 경우 완전히 신뢰합니다.for full trust for inheritors. 이 클래스는 부분적으로 신뢰할 수 있는 코드에서 상속할 수 없습니다.This class cannot be inherited by partially trusted code.
적용 대상
스레드 보안
이 형식은 스레드로부터 안전합니다.This type is thread safe.