ModuleBuilder 클래스

정의

동적 어셈블리의 모듈을 정의하고 나타냅니다.

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

예제

다음 코드 샘플에서는 를 사용하여 ModuleBuilder 동적 모듈을 만드는 방법을 보여 줍니다. ModuleBuilder는 생성자를 통하지 않고 에서 AssemblyBuilder를 호출 DefineDynamicModule 하여 생성됩니다.

using namespace System;
using namespace System::Reflection;
using namespace System::Reflection::Emit;
public ref class CodeGenerator
{
private:
   AssemblyBuilder^ myAssemblyBuilder;

public:
   CodeGenerator()
   {
      // Get the current application domain for the current thread.
      AppDomain^ myCurrentDomain = AppDomain::CurrentDomain;
      AssemblyName^ myAssemblyName = gcnew AssemblyName;
      myAssemblyName->Name = "TempAssembly";

      // Define a dynamic assembly in the current application domain.
      myAssemblyBuilder = myCurrentDomain->DefineDynamicAssembly( myAssemblyName, AssemblyBuilderAccess::Run );

      // Define a dynamic module in this assembly.
      ModuleBuilder^ myModuleBuilder = myAssemblyBuilder->DefineDynamicModule( "TempModule" );

      // Define a runtime class with specified name and attributes.
      TypeBuilder^ myTypeBuilder = myModuleBuilder->DefineType( "TempClass", TypeAttributes::Public );

      // Add 'Greeting' field to the class, with the specified attribute and type.
      FieldBuilder^ greetingField = myTypeBuilder->DefineField( "Greeting", String::typeid, FieldAttributes::Public );
      array<Type^>^myMethodArgs = {String::typeid};

      // Add 'MyMethod' method to the class, with the specified attribute and signature.
      MethodBuilder^ myMethod = myTypeBuilder->DefineMethod( "MyMethod", MethodAttributes::Public, CallingConventions::Standard, nullptr, myMethodArgs );
      ILGenerator^ methodIL = myMethod->GetILGenerator();
      methodIL->EmitWriteLine( "In the method..." );
      methodIL->Emit( OpCodes::Ldarg_0 );
      methodIL->Emit( OpCodes::Ldarg_1 );
      methodIL->Emit( OpCodes::Stfld, greetingField );
      methodIL->Emit( OpCodes::Ret );
      myTypeBuilder->CreateType();
   }

   property AssemblyBuilder^ MyAssembly 
   {
      AssemblyBuilder^ get()
      {
         return this->myAssemblyBuilder;
      }
   }
};

int main()
{
   CodeGenerator^ myCodeGenerator = gcnew CodeGenerator;

   // Get the assembly builder for 'myCodeGenerator' object.
   AssemblyBuilder^ myAssemblyBuilder = myCodeGenerator->MyAssembly;

   // Get the module builder for the above assembly builder object .
   ModuleBuilder^ myModuleBuilder = myAssemblyBuilder->GetDynamicModule( "TempModule" );
   Console::WriteLine( "The fully qualified name and path to this module is :{0}", myModuleBuilder->FullyQualifiedName );
   Type^ myType = myModuleBuilder->GetType( "TempClass" );
   MethodInfo^ myMethodInfo = myType->GetMethod( "MyMethod" );

   // Get the token used to identify the method within this module.
   MethodToken myMethodToken = myModuleBuilder->GetMethodToken( myMethodInfo );
   Console::WriteLine( "Token used to identify the method of 'myType'"
   " within the module is {0:x}", myMethodToken.Token );
   array<Object^>^args = {"Hello."};
   Object^ myObject = Activator::CreateInstance( myType, nullptr, nullptr );
   myMethodInfo->Invoke( myObject, args );
}
using System;
using System.Reflection;
using System.Reflection.Emit;
using System.Security.Permissions;

public class CodeGenerator
{
   AssemblyBuilder myAssemblyBuilder;
   public CodeGenerator()
   {
      // Get the current application domain for the current thread.
      AppDomain myCurrentDomain = AppDomain.CurrentDomain;
      AssemblyName myAssemblyName = new AssemblyName();
      myAssemblyName.Name = "TempAssembly";

      // Define a dynamic assembly in the current application domain.
      myAssemblyBuilder = myCurrentDomain.DefineDynamicAssembly
                     (myAssemblyName, AssemblyBuilderAccess.Run);

      // Define a dynamic module in this assembly.
      ModuleBuilder myModuleBuilder = myAssemblyBuilder.
                                      DefineDynamicModule("TempModule");

      // Define a runtime class with specified name and attributes.
      TypeBuilder myTypeBuilder = myModuleBuilder.DefineType
                                       ("TempClass",TypeAttributes.Public);

      // Add 'Greeting' field to the class, with the specified attribute and type.
      FieldBuilder greetingField = myTypeBuilder.DefineField("Greeting",
                                                            typeof(String), FieldAttributes.Public);
      Type[] myMethodArgs = { typeof(String) };

      // Add 'MyMethod' method to the class, with the specified attribute and signature.
      MethodBuilder myMethod = myTypeBuilder.DefineMethod("MyMethod",
         MethodAttributes.Public, CallingConventions.Standard, null,myMethodArgs);

      ILGenerator methodIL = myMethod.GetILGenerator();
      methodIL.EmitWriteLine("In the method...");
      methodIL.Emit(OpCodes.Ldarg_0);
      methodIL.Emit(OpCodes.Ldarg_1);
      methodIL.Emit(OpCodes.Stfld, greetingField);
      methodIL.Emit(OpCodes.Ret);
      myTypeBuilder.CreateType();
   }
   public AssemblyBuilder MyAssembly
   {
      get
      {
         return this.myAssemblyBuilder;
      }
   }
}
public class TestClass
{
   public static void Main()
   {
      CodeGenerator myCodeGenerator = new CodeGenerator();
      // Get the assembly builder for 'myCodeGenerator' object.
      AssemblyBuilder myAssemblyBuilder = myCodeGenerator.MyAssembly;
      // Get the module builder for the above assembly builder object .
      ModuleBuilder myModuleBuilder = myAssemblyBuilder.
                                                           GetDynamicModule("TempModule");
      Console.WriteLine("The fully qualified name and path to this "
                               + "module is :" +myModuleBuilder.FullyQualifiedName);
      Type myType = myModuleBuilder.GetType("TempClass");
      MethodInfo myMethodInfo =
                                                myType.GetMethod("MyMethod");
       // Get the token used to identify the method within this module.
      MethodToken myMethodToken =
                        myModuleBuilder.GetMethodToken(myMethodInfo);
      Console.WriteLine("Token used to identify the method of 'myType'"
                    + " within the module is {0:x}",myMethodToken.Token);
     object[] args={"Hello."};
     object myObject = Activator.CreateInstance(myType,null,null);
     myMethodInfo.Invoke(myObject,args);
   }
}
Imports System.Reflection
Imports System.Reflection.Emit
Imports System.Security.Permissions

Public Class CodeGenerator
   Private myAssemblyBuilder As AssemblyBuilder

   Public Sub New()
      ' Get the current application domain for the current thread.
      Dim myCurrentDomain As AppDomain = AppDomain.CurrentDomain
      Dim myAssemblyName As New AssemblyName()
      myAssemblyName.Name = "TempAssembly"

      ' Define a dynamic assembly in the current application domain.
      myAssemblyBuilder = _
               myCurrentDomain.DefineDynamicAssembly(myAssemblyName, AssemblyBuilderAccess.Run)

      ' Define a dynamic module in this assembly.
      Dim myModuleBuilder As ModuleBuilder = myAssemblyBuilder.DefineDynamicModule("TempModule")

      ' Define a runtime class with specified name and attributes.
      Dim myTypeBuilder As TypeBuilder = _
               myModuleBuilder.DefineType("TempClass", TypeAttributes.Public)

      ' Add 'Greeting' field to the class, with the specified attribute and type.
      Dim greetingField As FieldBuilder = _
               myTypeBuilder.DefineField("Greeting", GetType(String), FieldAttributes.Public)
      Dim myMethodArgs As Type() = {GetType(String)}

      ' Add 'MyMethod' method to the class, with the specified attribute and signature.
      Dim myMethod As MethodBuilder = _
               myTypeBuilder.DefineMethod("MyMethod", MethodAttributes.Public, _
               CallingConventions.Standard, Nothing, myMethodArgs)

      Dim methodIL As ILGenerator = myMethod.GetILGenerator()
      methodIL.EmitWriteLine("In the method...")
      methodIL.Emit(OpCodes.Ldarg_0)
      methodIL.Emit(OpCodes.Ldarg_1)
      methodIL.Emit(OpCodes.Stfld, greetingField)
      methodIL.Emit(OpCodes.Ret)
      myTypeBuilder.CreateType()
   End Sub

   Public ReadOnly Property MyAssembly() As AssemblyBuilder
      Get
         Return Me.myAssemblyBuilder
      End Get
   End Property
End Class

Public Class TestClass
   <PermissionSetAttribute(SecurityAction.Demand, Name:="FullTrust")> _
   Public Shared Sub Main()
      Dim myCodeGenerator As New CodeGenerator()
      ' Get the assembly builder for 'myCodeGenerator' object.
      Dim myAssemblyBuilder As AssemblyBuilder = myCodeGenerator.MyAssembly
      ' Get the module builder for the above assembly builder object .
      Dim myModuleBuilder As ModuleBuilder = myAssemblyBuilder.GetDynamicModule("TempModule")
      Console.WriteLine("The fully qualified name and path to this " + _
                        "module is :" + myModuleBuilder.FullyQualifiedName)
      Dim myType As Type = myModuleBuilder.GetType("TempClass")
      Dim myMethodInfo As MethodInfo = myType.GetMethod("MyMethod")
      ' Get the token used to identify the method within this module.
      Dim myMethodToken As MethodToken = myModuleBuilder.GetMethodToken(myMethodInfo)
      Console.WriteLine("Token used to identify the method of 'myType'" + _
                        " within the module is {0:x}", myMethodToken.Token)
      Dim args As Object() = {"Hello."}
      Dim myObject As Object = Activator.CreateInstance(myType, Nothing, Nothing)
      myMethodInfo.Invoke(myObject, args)
   End Sub
End Class

설명

ModuleBuilderinstance 얻으려면 메서드를 AssemblyBuilder.DefineDynamicModule 사용합니다.

생성자

ModuleBuilder()

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

속성

Assembly

ModuleBuilder 인스턴스를 정의한 동적 어셈블리를 가져옵니다.

Assembly

Assembly의 이 인스턴스에 적합한 Module를 가져옵니다.

(다음에서 상속됨 Module)
CustomAttributes

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

(다음에서 상속됨 Module)
FullyQualifiedName

이 모듈의 정규화된 이름과 모듈의 경로를 나타내는 String을 가져옵니다.

MDStreamVersion

메타데이터 스트림 버전을 가져옵니다.

MDStreamVersion

메타데이터 스트림 버전을 가져옵니다.

(다음에서 상속됨 Module)
MetadataToken

메타데이터에서 현재 동적 모듈을 식별하는 토큰을 가져옵니다.

MetadataToken

메타데이터에 있는 모듈을 식별하는 토큰을 가져옵니다.

(다음에서 상속됨 Module)
ModuleHandle

모듈에 대한 핸들을 가져옵니다.

(다음에서 상속됨 Module)
ModuleVersionId

모듈의 두 버전 간을 구분하는 데 사용할 수 있는 UUID(범용 고유 식별자)를 가져옵니다.

ModuleVersionId

모듈의 두 버전 간을 구분하는 데 사용할 수 있는 UUID(범용 고유 식별자)를 가져옵니다.

(다음에서 상속됨 Module)
Name

메모리 내 모듈임을 나타내는 문자열입니다.

Name

경로가 제거된 모듈의 이름을 나타내는 String을 가져옵니다.

(다음에서 상속됨 Module)
ScopeName

동적 모듈의 이름을 나타내는 문자열을 가져옵니다.

ScopeName

모듈의 이름을 나타내는 문자열을 가져옵니다.

(다음에서 상속됨 Module)

메서드

CreateGlobalFunctions()

이 동적 모듈에 대한 전역 함수 정의 및 전역 데이터 정의를 완성합니다.

CreateGlobalFunctionsCore()

파생 클래스에서 재정의되는 경우 이 동적 모듈에 대한 전역 함수 정의 및 전역 데이터 정의를 완료합니다.

DefineDocument(String, Guid, Guid, Guid)

소스에 대한 문서를 정의합니다.

DefineEnum(String, TypeAttributes, Type)

지정된 형식의 단일 비정적 필드인 value__가 들어 있는 값 형식으로 열거형 형식을 정의합니다.

DefineEnumCore(String, TypeAttributes, Type)

파생 클래스에서 재정의되는 경우 지정된 형식의 value__ 라는 단일 비정적 필드가 있는 값 형식인 열거형 형식을 정의합니다.

DefineGlobalMethod(String, MethodAttributes, CallingConventions, Type, Type[])

이름, 특성, 호출 규칙, 반환 형식 및 매개 변수 형식을 지정하여 전역 메서드를 정의합니다.

DefineGlobalMethod(String, MethodAttributes, CallingConventions, Type, Type[], Type[], Type[], Type[][], Type[][])

이름, 특성, 호출 규칙, 반환 형식, 반환 형식에 대한 사용자 지정 한정자, 매개 변수 형식 및 매개 변수 형식에 대한 사용자 지정 한정자를 지정하여 전역 메서드를 정의합니다.

DefineGlobalMethod(String, MethodAttributes, Type, Type[])

이름, 특성, 반환 형식 및 매개 변수 형식을 지정하여 전역 메서드를 정의합니다.

DefineGlobalMethodCore(String, MethodAttributes, CallingConventions, Type, Type[], Type[], Type[], Type[][], Type[][])

파생 클래스에서 재정의되는 경우 지정된 이름, 특성, 호출 규칙, 반환 형식, 반환 형식에 대한 사용자 지정 한정자, 매개 변수 형식 및 매개 변수 형식에 대한 사용자 지정 한정자를 사용하여 전역 메서드를 정의합니다.

DefineInitializedData(String, Byte[], FieldAttributes)

PE 파일(이식 가능한 실행 파일)의 .sdata 섹션에서 초기화된 데이터 필드를 정의합니다.

DefineInitializedDataCore(String, Byte[], FieldAttributes)

파생 클래스에서 재정의되는 경우 PE(이식 가능한 실행 파일) 파일의 .sdata 섹션에서 초기화된 데이터 필드를 정의합니다.

DefineManifestResource(String, Stream, ResourceAttributes)

동적 어셈블리에 포함할 매니페스트 리소스를 나타내는 BLOB(Binary Large Object)를 정의합니다.

DefinePInvokeMethod(String, String, MethodAttributes, CallingConventions, Type, Type[], CallingConvention, CharSet)

이름, 메서드가 정의되어 있는 DLL의 이름, 해당 메서드의 특성, 호출 규칙, 반환 형식, 매개 변수 형식 및 PInvoke 플래그를 지정하여 PInvoke 메서드를 정의합니다.

DefinePInvokeMethod(String, String, String, MethodAttributes, CallingConventions, Type, Type[], CallingConvention, CharSet)

이름, 메서드가 정의되어 있는 DLL의 이름, 해당 메서드의 특성, 호출 규칙, 반환 형식, 매개 변수 형식 및 PInvoke 플래그를 지정하여 PInvoke 메서드를 정의합니다.

DefinePInvokeMethodCore(String, String, String, MethodAttributes, CallingConventions, Type, Type[], CallingConvention, CharSet)

파생 클래스에서 재정의되는 경우 는 메서드를 PInvoke 정의합니다.

DefineResource(String, String)

이 모듈에 저장될 명명된 관리되는 포함 리소스를 정의합니다.

DefineResource(String, String, ResourceAttributes)

해당 모듈에 저장될 명명된 관리되는 포함 리소스를 지정한 특성으로 정의합니다.

DefineType(String)

이 모듈에서 지정된 이름을 사용하는 프라이빗 형식에 대해 TypeBuilder를 생성합니다.

DefineType(String, TypeAttributes)

지정된 형식 이름 및 형식 특성으로 TypeBuilder를 생성합니다.

DefineType(String, TypeAttributes, Type)

형식 이름, 형식 특성 및 정의된 형식이 확장하는 형식으로 TypeBuilder를 생성합니다.

DefineType(String, TypeAttributes, Type, Int32)

형식 이름, 특성, 정의된 형식이 확장하는 형식 및 해당 형식의 전체 크기를 지정하여 TypeBuilder를 생성합니다.

DefineType(String, TypeAttributes, Type, PackingSize)

형식 이름, 특성, 정의된 형식이 확장하는 형식 및 해당 형식의 압축 크기를 지정하여 TypeBuilder를 생성합니다.

DefineType(String, TypeAttributes, Type, PackingSize, Int32)

형식 이름, 특성, 정의된 형식이 확장하는 형식, 정의된 형식의 압축 크기 및 전체 크기를 지정하여 TypeBuilder를 생성합니다.

DefineType(String, TypeAttributes, Type, Type[])

형식 이름, 특성, 정의된 형식이 확장하는 형식 및 정의된 형식이 구현하는 인터페이스를 지정하여 TypeBuilder를 생성합니다.

DefineTypeCore(String, TypeAttributes, Type, Type[], PackingSize, Int32)

파생 클래스에서 재정의되면 을 생성합니다 TypeBuilder.

DefineUninitializedData(String, Int32, FieldAttributes)

PE 파일(이식 가능한 실행 파일)의 .sdata 섹션에서 초기화되지 않은 데이터 필드를 정의합니다.

DefineUninitializedDataCore(String, Int32, FieldAttributes)

파생 클래스에서 재정의되는 경우 PE(이식 가능한 실행 파일) 파일의 .sdata 섹션에서 초기화되지 않은 데이터 필드를 정의합니다.

DefineUnmanagedResource(Byte[])

바이트의 불투명한 BLOB(Binary Large Object)를 지정하여 관리되지 않는 포함 리소스를 정의합니다.

DefineUnmanagedResource(String)

Win32 리소스 파일의 이름으로 관리되지 않는 리소스를 정의합니다.

Equals(Object)

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

Equals(Object)

이 모듈과 지정된 개체가 서로 같은지 여부를 확인합니다.

(다음에서 상속됨 Module)
FindTypes(TypeFilter, Object)

지정한 필터 및 필터 조건에서 허용하는 클래스 배열을 반환합니다.

(다음에서 상속됨 Module)
GetArrayMethod(Type, String, CallingConventions, Type, Type[])

배열 클래스의 명명된 메서드를 반환합니다.

GetArrayMethodCore(Type, String, CallingConventions, Type, Type[])

파생 클래스에서 재정의되는 경우 배열 클래스에서 명명된 메서드를 반환합니다.

GetArrayMethodToken(Type, String, CallingConventions, Type, Type[])

배열 클래스의 명명된 메서드 토큰을 반환합니다.

GetConstructorToken(ConstructorInfo)

이 모듈 내에서 지정된 생성자를 식별하는 데 사용되는 토큰을 반환합니다.

GetConstructorToken(ConstructorInfo, IEnumerable<Type>)

이 모듈에 지정된 특성 및 매개 변수 형식이 적용된 생성자를 식별하는 데 사용되는 토큰을 반환합니다.

GetCustomAttributes(Boolean)

현재 ModuleBuilder에 적용된 사용자 지정 특성을 모두 반환합니다.

GetCustomAttributes(Boolean)

모든 사용자 지정 특성을 반환합니다.

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

현재 ModuleBuilder에 적용되었으며 지정된 특성 형식에서 파생되는 사용자 지정 특성을 모두 반환합니다.

GetCustomAttributes(Type, Boolean)

지정한 형식의 사용자 지정 특성을 가져옵니다.

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

ModuleBuilder 개체로 표현되는, 현재 CustomAttributeData에 적용된 특성 관련 정보를 반환합니다.

GetCustomAttributesData()

리플렉션 전용 컨텍스트에서 사용할 수 있는 현재 모듈에 대한 CustomAttributeData 개체 목록을 반환합니다.

(다음에서 상속됨 Module)
GetField(String)

지정된 이름을 갖는 필드를 반환합니다.

(다음에서 상속됨 Module)
GetField(String, BindingFlags)

지정된 이름과 바인딩 특성을 가진 PE 파일(이식 가능한 실행 파일)의 .sdata 영역에 정의된 모듈 수준 필드를 반환합니다.

GetField(String, BindingFlags)

지정된 이름 및 바인딩 특성을 갖는 필드를 반환합니다.

(다음에서 상속됨 Module)
GetFieldMetadataToken(FieldInfo)

파생 클래스에서 재정의되는 경우 모듈을 기준으로 지정된 FieldInfo 에 대한 메타데이터 토큰을 반환합니다.

GetFields()

모듈에 정의된 전역 필드를 반환합니다.

(다음에서 상속됨 Module)
GetFields(BindingFlags)

지정된 바인딩 플래그와 일치하는 PE 파일(이식 가능한 실행 파일)의 .sdata 영역에 정의된 모든 필드를 반환합니다.

GetFields(BindingFlags)

지정된 바인딩 플래그와 일치하는 모듈에 정의된 전역 필드를 반환합니다.

(다음에서 상속됨 Module)
GetFieldToken(FieldInfo)

이 모듈 내에서 지정된 필드를 식별하는 데 사용되는 토큰을 반환합니다.

GetHashCode()

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

GetHashCode()

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

(다음에서 상속됨 Module)
GetMethod(String)

지정된 이름이 있는 메서드를 반환합니다.

(다음에서 상속됨 Module)
GetMethod(String, BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[])

지정된 이름, 바인딩 정보, 호출 규칙, 매개 변수 형식 및 한정자가 있는 메서드를 반환합니다.

(다음에서 상속됨 Module)
GetMethod(String, Type[])

지정된 이름과 매개 변수 형식이 있는 메서드를 반환합니다.

(다음에서 상속됨 Module)
GetMethodImpl(String, BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[])

지정된 조건과 일치하는 모듈 수준 메서드를 반환합니다.

GetMethodImpl(String, BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[])

지정한 기준을 만족하는 메서드 구현을 반환합니다.

(다음에서 상속됨 Module)
GetMethodMetadataToken(ConstructorInfo)

파생 클래스에서 재정의되는 경우 모듈을 기준으로 지정된 ConstructorInfo 에 대한 메타데이터 토큰을 반환합니다.

GetMethodMetadataToken(MethodInfo)

파생 클래스에서 재정의되는 경우 모듈을 기준으로 지정된 MethodInfo 에 대한 메타데이터 토큰을 반환합니다.

GetMethods()

모듈에 정의된 전역 메서드를 반환합니다.

(다음에서 상속됨 Module)
GetMethods(BindingFlags)

모듈 수준에서 현재 ModuleBuilder에 대해 정의되었으며 지정된 바인딩 플래그와 일치하는 모든 메서드를 반환합니다.

GetMethods(BindingFlags)

지정된 바인딩 플래그와 일치하는 모듈에 정의된 전역 메서드를 반환합니다.

(다음에서 상속됨 Module)
GetMethodToken(MethodInfo)

이 모듈 내에서 지정된 메서드를 식별하는 데 사용되는 토큰을 반환합니다.

GetMethodToken(MethodInfo, IEnumerable<Type>)

이 모듈에 지정된 특성 및 매개 변수 형식이 적용된 메서드를 식별하는 데 사용되는 토큰을 반환합니다.

GetObjectData(SerializationInfo, StreamingContext)
사용되지 않음.

serialize된 개체에 ISerializable을 구현합니다.

(다음에서 상속됨 Module)
GetPEKind(PortableExecutableKinds, ImageFileMachine)

모듈의 코드 특성과 대상 플랫폼을 나타내는 값 쌍을 가져옵니다.

GetPEKind(PortableExecutableKinds, ImageFileMachine)

모듈의 코드 특성과 대상 플랫폼을 나타내는 값 쌍을 가져옵니다.

(다음에서 상속됨 Module)
GetSignatureMetadataToken(SignatureHelper)

파생 클래스에서 재정의되는 경우 모듈을 기준으로 지정된 SignatureHelper 에 대한 메타데이터 토큰을 반환합니다.

GetSignatureToken(Byte[], Int32)

문자 배열과 시그니처 길이를 지정하여 시그니처의 토큰을 정의합니다.

GetSignatureToken(SignatureHelper)

지정된 SignatureHelper로 정의된 시그니처의 토큰을 정의합니다.

GetSignerCertificate()

이 모듈이 속한 어셈블리의 Authenticode 서명에 포함된 인증서에 해당하는 X509Certificate 개체를 반환합니다. 어셈블리가 Authenticode로 서명되지 않은 경우에는 null을 반환합니다.

GetSignerCertificate()

이 모듈이 속한 어셈블리의 Authenticode 서명에 포함된 인증서에 해당하는 X509Certificate 개체를 반환합니다. 어셈블리가 Authenticode로 서명되지 않은 경우에는 null을 반환합니다.

(다음에서 상속됨 Module)
GetStringConstant(String)

모듈의 상수 풀에서 지정된 문자열의 토큰을 반환합니다.

GetStringMetadataToken(String)

파생 클래스에서 재정의되는 경우 모듈을 기준으로 지정된 String 상수에 대한 메타데이터 토큰을 반환합니다.

GetSymWriter()

이 동적 모듈에 연결된 기호 작성기를 반환합니다.

GetType()

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
GetType(String)

해당 모듈에 정의되어 있는 명명된 형식을 가져옵니다.

GetType(String)

대/소문자 구분을 수행하여 지정된 형식을 반환합니다.

(다음에서 상속됨 Module)
GetType(String, Boolean)

모듈에 정의되어 있는 명명된 형식을 가져옵니다. 필요에 따라 형식 이름의 대/소문자 구분을 무시할 수 있습니다.

GetType(String, Boolean)

지정된 형식을 반환하고 지정된 대/소문자를 사용하여 모듈을 검색합니다.

(다음에서 상속됨 Module)
GetType(String, Boolean, Boolean)

모듈에 정의되어 있는 명명된 형식을 가져옵니다. 필요에 따라 형식 이름의 대/소문자 구분을 무시할 수 있습니다. 해당 형식을 찾을 수 없는 경우 선택적으로 예외가 throw됩니다.

GetType(String, Boolean, Boolean)

모듈을 검색할 때 대/소문자를 구분할지 여부와 형식을 찾을 수 없을 때 예외를 throw할지 여부를 지정하여 지정된 형식을 반환합니다.

(다음에서 상속됨 Module)
GetTypeMetadataToken(Type)

파생 클래스에서 재정의되는 경우 모듈을 기준으로 지정된 Type 에 대한 메타데이터 토큰을 반환합니다.

GetTypes()

이 모듈 내에 정의된 클래스를 모두 반환합니다.

GetTypes()

이 모듈 내에 정의된 모든 형식을 반환합니다.

(다음에서 상속됨 Module)
GetTypeToken(String)

지정된 이름으로 형식을 식별하는 데 사용되는 토큰을 반환합니다.

GetTypeToken(Type)

이 모듈 내에서 지정된 필드를 식별하는 데 사용되는 형식을 반환합니다.

IsDefined(Type, Boolean)

이 모듈에 지정된 특성 형식이 적용되었는지 여부를 나타내는 값을 반환합니다.

IsDefined(Type, Boolean)

이 모듈에 지정된 특성 형식이 적용되었는지 여부를 나타내는 값을 반환합니다.

(다음에서 상속됨 Module)
IsResource()

이 개체가 리소스인지 여부를 나타내는 값을 가져옵니다.

IsResource()

이 개체가 리소스인지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Module)
IsTransient()

이 동적 모듈이 임시 모듈인지 여부를 나타내는 값을 반환합니다.

MemberwiseClone()

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

(다음에서 상속됨 Object)
ResolveField(Int32)

지정된 메타데이터 토큰으로 식별되는 필드를 반환합니다.

(다음에서 상속됨 Module)
ResolveField(Int32, Type[], Type[])

지정된 제네릭 형식 매개 변수로 정의되는 컨텍스트에서 지정된 메타데이터 토큰으로 식별되는 필드를 반환합니다.

ResolveField(Int32, Type[], Type[])

지정된 제네릭 형식 매개 변수로 정의되는 컨텍스트에서 지정된 메타데이터 토큰으로 식별되는 필드를 반환합니다.

(다음에서 상속됨 Module)
ResolveMember(Int32)

지정된 메타데이터 토큰으로 식별되는 형식이나 멤버를 반환합니다.

(다음에서 상속됨 Module)
ResolveMember(Int32, Type[], Type[])

지정된 제네릭 형식 매개 변수로 정의되는 컨텍스트에서 지정된 메타데이터 토큰으로 식별되는 형식 또는 멤버를 반환합니다.

ResolveMember(Int32, Type[], Type[])

지정된 제네릭 형식 매개 변수로 정의되는 컨텍스트에서 지정된 메타데이터 토큰으로 식별되는 형식 또는 멤버를 반환합니다.

(다음에서 상속됨 Module)
ResolveMethod(Int32)

지정된 메타데이터 토큰으로 식별되는 메서드나 생성자를 반환합니다.

(다음에서 상속됨 Module)
ResolveMethod(Int32, Type[], Type[])

지정된 제네릭 형식 매개 변수로 정의되는 컨텍스트에서 지정된 메타데이터 토큰으로 식별되는 메서드 또는 생성자를 반환합니다.

ResolveMethod(Int32, Type[], Type[])

지정된 제네릭 형식 매개 변수로 정의되는 컨텍스트에서 지정된 메타데이터 토큰으로 식별되는 메서드 또는 생성자를 반환합니다.

(다음에서 상속됨 Module)
ResolveSignature(Int32)

메타데이터 토큰으로 식별되는 시그니처 blob을 반환합니다.

ResolveSignature(Int32)

메타데이터 토큰으로 식별되는 시그니처 blob을 반환합니다.

(다음에서 상속됨 Module)
ResolveString(Int32)

지정된 메타데이터 토큰으로 식별되는 문자열을 반환합니다.

ResolveString(Int32)

지정된 메타데이터 토큰으로 식별되는 문자열을 반환합니다.

(다음에서 상속됨 Module)
ResolveType(Int32)

지정된 메타데이터 토큰으로 식별되는 형식을 반환합니다.

(다음에서 상속됨 Module)
ResolveType(Int32, Type[], Type[])

지정된 제네릭 형식 매개 변수로 정의되는 컨텍스트에서 지정된 메타데이터 토큰으로 식별되는 형식을 반환합니다.

ResolveType(Int32, Type[], Type[])

지정된 제네릭 형식 매개 변수로 정의되는 컨텍스트에서 지정된 메타데이터 토큰으로 식별되는 형식을 반환합니다.

(다음에서 상속됨 Module)
SetCustomAttribute(ConstructorInfo, Byte[])

특성을 나타내는 지정된 BLOB(Binary Large Object)를 사용하여 이 모듈에 사용자 지정 특성을 적용합니다.

SetCustomAttribute(CustomAttributeBuilder)

사용자 지정 특성 작성기를 사용하여 이 모듈에 사용자 지정 특성을 적용합니다.

SetCustomAttributeCore(ConstructorInfo, ReadOnlySpan<Byte>)

파생 클래스에서 재정의되는 경우 이 어셈블리에서 사용자 지정 특성을 설정합니다.

SetSymCustomAttribute(String, Byte[])

이 메서드는 아무 작업도 수행하지 않습니다.

SetUserEntryPoint(MethodInfo)

사용자 진입점을 설정합니다.

ToString()

모듈의 이름을 반환합니다.

(다음에서 상속됨 Module)

명시적 인터페이스 구현

_Module.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

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

(다음에서 상속됨 Module)
_Module.GetTypeInfo(UInt32, UInt32, IntPtr)

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

(다음에서 상속됨 Module)
_Module.GetTypeInfoCount(UInt32)

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

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

개체에서 노출하는 메서드와 속성에 대한 액세스를 제공합니다.

(다음에서 상속됨 Module)
_ModuleBuilder.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

이 멤버에 대한 설명은 GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)를 참조하세요.

_ModuleBuilder.GetTypeInfo(UInt32, UInt32, IntPtr)

이 멤버에 대한 설명은 GetTypeInfo(UInt32, UInt32, IntPtr)를 참조하세요.

_ModuleBuilder.GetTypeInfoCount(UInt32)

이 멤버에 대한 설명은 GetTypeInfoCount(UInt32)를 참조하세요.

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

이 멤버에 대한 설명은 Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)를 참조하세요.

ICustomAttributeProvider.GetCustomAttributes(Boolean)

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

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

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

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

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

(다음에서 상속됨 Module)

확장 메서드

GetCustomAttribute(Module, Type)

지정된 모듈에 적용된 지정된 형식의 사용자 지정 특성을 검색합니다.

GetCustomAttribute<T>(Module)

지정된 모듈에 적용된 지정된 형식의 사용자 지정 특성을 검색합니다.

GetCustomAttributes(Module)

지정된 모듈에 적용된 사용자 지정 특성 컬렉션을 검색합니다.

GetCustomAttributes(Module, Type)

지정된 모듈에 적용된 지정된 형식의 사용자 지정 특성 컬렉션을 검색합니다.

GetCustomAttributes<T>(Module)

지정된 모듈에 적용된 지정된 형식의 사용자 지정 특성 컬렉션을 검색합니다.

IsDefined(Module, Type)

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

GetModuleVersionId(Module)

동적 어셈블리의 모듈을 정의하고 나타냅니다.

HasModuleVersionId(Module)

동적 어셈블리의 모듈을 정의하고 나타냅니다.

적용 대상