DynamicMethod.Attributes 속성

정의

동적 메서드를 만들 때 지정된 특성을 가져옵니다.

public:
 virtual property System::Reflection::MethodAttributes Attributes { System::Reflection::MethodAttributes get(); };
public override System.Reflection.MethodAttributes Attributes { get; }
member this.Attributes : System.Reflection.MethodAttributes
Public Overrides ReadOnly Property Attributes As MethodAttributes

속성 값

MethodAttributes

메서드의 특성을 나타내는 MethodAttributes 값의 비트 조합입니다.

예제

다음 코드 예제에서는 동적 메서드의 메서드 특성을 표시 합니다. 이 코드 예제는에 대해 제공 된 큰 예제의 일부는 DynamicMethod 클래스입니다.

// Display MethodAttributes for the dynamic method, set when 
// the dynamic method was created.
Console::WriteLine("\r\nMethod Attributes: {0}", hello->Attributes);
// Display MethodAttributes for the dynamic method, set when
// the dynamic method was created.
Console.WriteLine("\r\nMethod Attributes: {0}", hello.Attributes);
' Display MethodAttributes for the dynamic method, set when 
' the dynamic method was created.
Console.WriteLine(vbCrLf & "Method Attributes: {0}", _
    hello.Attributes)

설명

현재 동적 메서드의 메서드 특성은 항상 Public 다음과 같습니다 Static.

적용 대상