TypeBuilder.DefineNestedType 메서드

정의

중첩 형식을 정의합니다.

오버로드

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

해당 이름, 특성, 해당 형식이 확장하는 형식, 구현하는 인터페이스를 지정하여 중첩된 형식을 정의합니다.

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

해당 이름, 특성, 크기 및 해당 형식이 확장하는 형식을 지정하여 중첩된 형식을 정의합니다.

DefineNestedType(String, TypeAttributes, Type, PackingSize)

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

DefineNestedType(String)

지정된 이름의 중첩 형식을 정의합니다.

DefineNestedType(String, TypeAttributes, Type)

해당 이름, 특성 및 확장되는 형식이 지정된 경우 중첩된 형식을 정의합니다.

DefineNestedType(String, TypeAttributes)

이름 및 특성이 지정된 경우 중첩된 형식을 정의합니다.

DefineNestedType(String, TypeAttributes, Type, Int32)

해당 이름, 특성, 형식의 총 크기 및 해당 형식이 확장하는 형식을 지정하여 중첩된 형식을 정의합니다.

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

Source:
TypeBuilder.cs
Source:
TypeBuilder.cs
Source:
TypeBuilder.cs

해당 이름, 특성, 해당 형식이 확장하는 형식, 구현하는 인터페이스를 지정하여 중첩된 형식을 정의합니다.

public:
 System::Reflection::Emit::TypeBuilder ^ DefineNestedType(System::String ^ name, System::Reflection::TypeAttributes attr, Type ^ parent, cli::array <Type ^> ^ interfaces);
public System.Reflection.Emit.TypeBuilder DefineNestedType (string name, System.Reflection.TypeAttributes attr, Type? parent, Type[]? interfaces);
public System.Reflection.Emit.TypeBuilder DefineNestedType (string name, System.Reflection.TypeAttributes attr, Type parent, Type[] interfaces);
[System.Runtime.InteropServices.ComVisible(true)]
public System.Reflection.Emit.TypeBuilder DefineNestedType (string name, System.Reflection.TypeAttributes attr, Type parent, Type[] interfaces);
member this.DefineNestedType : string * System.Reflection.TypeAttributes * Type * Type[] -> System.Reflection.Emit.TypeBuilder
[<System.Runtime.InteropServices.ComVisible(true)>]
member this.DefineNestedType : string * System.Reflection.TypeAttributes * Type * Type[] -> System.Reflection.Emit.TypeBuilder
Public Function DefineNestedType (name As String, attr As TypeAttributes, parent As Type, interfaces As Type()) As TypeBuilder

매개 변수

name
String

형식의 약식 이름입니다. name에는 내장된 null이 포함될 수 없습니다.

attr
TypeAttributes

형식의 특성입니다.

parent
Type

중첩된 형식이 확장하는 형식입니다.

interfaces
Type[]

중첩된 형식이 구현하는 인터페이스입니다.

반환

정의된 중첩 형식입니다.

특성

예외

중첩된 특성이 지정되지 않았습니다.

또는

이 형식이 봉인되어 있습니다.

또는

이 형식은 배열입니다.

또는

이 형식은 인터페이스지만 중첩된 형식은 인터페이스가 아닙니다.

또는

name의 길이가 0이거나 1023보다 큽니다.

또는

이 작업을 수행하면 현재 어셈블리에 FullName이 중복된 형식이 만들어집니다.

name이(가) null인 경우

또는

interfaces 배열의 요소가 null입니다.

설명

이 메서드는 메서드가 바깥쪽 형식에서 호출된 후에도 CreateType 중첩된 형식을 만드는 데 사용할 수 있습니다.

중첩된 형식을 완료해야 , GetNestedType또는 GetNestedTypes를 사용하여 GetMembers반영할 수 있습니다.

중첩 형식 및 중첩 형식을 완료해야 하는 순서는 의 설명을 CreateType 참조하세요.

이 이전에 정의된 형식 또는 중첩된 형식의 이름과 동일한 경우 name 중복 이름이 반드시 만들어지는 것은 아닙니다. 중복되려면 네임스페이스 및 모든 중첩 형식을 포함하여 전체 이름이 동일해야 합니다.

적용 대상

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

Source:
TypeBuilder.cs
Source:
TypeBuilder.cs
Source:
TypeBuilder.cs

해당 이름, 특성, 크기 및 해당 형식이 확장하는 형식을 지정하여 중첩된 형식을 정의합니다.

public:
 System::Reflection::Emit::TypeBuilder ^ DefineNestedType(System::String ^ name, System::Reflection::TypeAttributes attr, Type ^ parent, System::Reflection::Emit::PackingSize packSize, int typeSize);
public System.Reflection.Emit.TypeBuilder DefineNestedType (string name, System.Reflection.TypeAttributes attr, Type? parent, System.Reflection.Emit.PackingSize packSize, int typeSize);
public System.Reflection.Emit.TypeBuilder DefineNestedType (string name, System.Reflection.TypeAttributes attr, Type parent, System.Reflection.Emit.PackingSize packSize, int typeSize);
member this.DefineNestedType : string * System.Reflection.TypeAttributes * Type * System.Reflection.Emit.PackingSize * int -> System.Reflection.Emit.TypeBuilder
Public Function DefineNestedType (name As String, attr As TypeAttributes, parent As Type, packSize As PackingSize, typeSize As Integer) As TypeBuilder

매개 변수

name
String

형식의 약식 이름입니다. name에는 포함된 null이 있을 수 없습니다.

attr
TypeAttributes

형식의 특성입니다.

parent
Type

중첩된 형식이 확장하는 형식입니다.

packSize
PackingSize

형식의 압축 크기입니다.

typeSize
Int32

형식의 총 크기입니다.

반환

정의된 중첩 형식입니다.

적용 대상

DefineNestedType(String, TypeAttributes, Type, PackingSize)

Source:
TypeBuilder.cs
Source:
TypeBuilder.cs
Source:
TypeBuilder.cs

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

public:
 System::Reflection::Emit::TypeBuilder ^ DefineNestedType(System::String ^ name, System::Reflection::TypeAttributes attr, Type ^ parent, System::Reflection::Emit::PackingSize packSize);
public System.Reflection.Emit.TypeBuilder DefineNestedType (string name, System.Reflection.TypeAttributes attr, Type? parent, System.Reflection.Emit.PackingSize packSize);
public System.Reflection.Emit.TypeBuilder DefineNestedType (string name, System.Reflection.TypeAttributes attr, Type parent, System.Reflection.Emit.PackingSize packSize);
member this.DefineNestedType : string * System.Reflection.TypeAttributes * Type * System.Reflection.Emit.PackingSize -> System.Reflection.Emit.TypeBuilder
Public Function DefineNestedType (name As String, attr As TypeAttributes, parent As Type, packSize As PackingSize) As TypeBuilder

매개 변수

name
String

형식의 약식 이름입니다. name에는 내장된 null이 포함될 수 없습니다.

attr
TypeAttributes

형식의 특성입니다.

parent
Type

중첩된 형식이 확장하는 형식입니다.

packSize
PackingSize

형식의 압축 크기입니다.

반환

정의된 중첩 형식입니다.

예외

중첩된 특성이 지정되지 않았습니다.

또는

이 형식이 봉인되어 있습니다.

또는

이 형식은 배열입니다.

또는

이 형식은 인터페이스지만 중첩된 형식은 인터페이스가 아닙니다.

또는

name의 길이가 0이거나 1023보다 큽니다.

또는

이 작업을 수행하면 현재 어셈블리에 FullName이 중복된 형식이 만들어집니다.

name이(가) null인 경우

설명

이 메서드는 메서드가 바깥쪽 형식에서 호출된 후에도 CreateType 중첩된 형식을 만드는 데 사용할 수 있습니다.

중첩된 형식을 완료해야 , GetNestedType또는 GetNestedTypes를 사용하여 GetMembers반영할 수 있습니다.

중첩 형식 및 중첩 형식을 완료해야 하는 순서는 의 설명을 CreateType 참조하세요.

이 이전에 정의된 형식 또는 중첩된 형식의 이름과 동일한 경우 name 중복 이름이 반드시 만들어지는 것은 아닙니다. 중복되려면 네임스페이스 및 모든 중첩 형식을 포함하여 전체 이름이 동일해야 합니다.

적용 대상

DefineNestedType(String)

Source:
TypeBuilder.cs
Source:
TypeBuilder.cs
Source:
TypeBuilder.cs

지정된 이름의 중첩 형식을 정의합니다.

public:
 System::Reflection::Emit::TypeBuilder ^ DefineNestedType(System::String ^ name);
public System.Reflection.Emit.TypeBuilder DefineNestedType (string name);
member this.DefineNestedType : string -> System.Reflection.Emit.TypeBuilder
Public Function DefineNestedType (name As String) As TypeBuilder

매개 변수

name
String

형식의 약식 이름입니다. name에는 내장된 null이 포함될 수 없습니다.

반환

정의된 중첩 형식입니다.

예외

name의 길이가 0이거나 1023보다 큽니다.

또는

이 작업을 수행하면 현재 어셈블리에 FullName이 중복된 형식이 만들어집니다.

name이(가) null인 경우

설명

이 메서드는 메서드가 바깥쪽 형식에서 호출된 후에도 CreateType 중첩된 형식을 만드는 데 사용할 수 있습니다.

중첩된 형식을 완료해야 , GetNestedType또는 GetNestedTypes를 사용하여 GetMembers반영할 수 있습니다.

중첩 형식 및 중첩 형식을 완료해야 하는 순서는 의 설명을 CreateType 참조하세요.

이 이전에 정의된 형식 또는 중첩된 형식의 이름과 동일한 경우 name 중복 이름이 반드시 만들어지는 것은 아닙니다. 중복되려면 네임스페이스 및 모든 중첩 형식을 포함하여 전체 이름이 동일해야 합니다.

적용 대상

DefineNestedType(String, TypeAttributes, Type)

Source:
TypeBuilder.cs
Source:
TypeBuilder.cs
Source:
TypeBuilder.cs

해당 이름, 특성 및 확장되는 형식이 지정된 경우 중첩된 형식을 정의합니다.

public:
 System::Reflection::Emit::TypeBuilder ^ DefineNestedType(System::String ^ name, System::Reflection::TypeAttributes attr, Type ^ parent);
public System.Reflection.Emit.TypeBuilder DefineNestedType (string name, System.Reflection.TypeAttributes attr, Type? parent);
public System.Reflection.Emit.TypeBuilder DefineNestedType (string name, System.Reflection.TypeAttributes attr, Type parent);
member this.DefineNestedType : string * System.Reflection.TypeAttributes * Type -> System.Reflection.Emit.TypeBuilder
Public Function DefineNestedType (name As String, attr As TypeAttributes, parent As Type) As TypeBuilder

매개 변수

name
String

형식의 약식 이름입니다. name에는 내장된 null이 포함될 수 없습니다.

attr
TypeAttributes

형식의 특성입니다.

parent
Type

중첩된 형식이 확장하는 형식입니다.

반환

정의된 중첩 형식입니다.

예외

중첩된 특성이 지정되지 않았습니다.

또는

이 형식이 봉인되어 있습니다.

또는

이 형식은 배열입니다.

또는

이 형식은 인터페이스지만 중첩된 형식은 인터페이스가 아닙니다.

또는

name의 길이가 0이거나 1023보다 큽니다.

또는

이 작업을 수행하면 현재 어셈블리에 FullName이 중복된 형식이 만들어집니다.

name이(가) null인 경우

설명

이 메서드는 바깥쪽 형식에서 메서드가 CreateType 호출된 후에도 중첩된 형식을 만드는 데 사용할 수 있습니다.

중첩된 형식을 완료해야 , GetNestedType또는 GetNestedTypes를 사용하여 GetMembers반영할 수 있습니다.

CreateType 첩 형식 및 중첩 형식을 완료해야 하는 순서는 의 설명을 참조하세요.

이 이전에 정의된 형식 또는 중첩된 형식의 이름과 동일한 경우 name 중복 이름이 반드시 만들어지는 것은 아닙니다. 중복되려면 네임스페이스 및 모든 중첩 형식을 포함하여 전체 이름이 동일해야 합니다.

적용 대상

DefineNestedType(String, TypeAttributes)

Source:
TypeBuilder.cs
Source:
TypeBuilder.cs
Source:
TypeBuilder.cs

이름 및 특성이 지정된 경우 중첩된 형식을 정의합니다.

public:
 System::Reflection::Emit::TypeBuilder ^ DefineNestedType(System::String ^ name, System::Reflection::TypeAttributes attr);
public System.Reflection.Emit.TypeBuilder DefineNestedType (string name, System.Reflection.TypeAttributes attr);
member this.DefineNestedType : string * System.Reflection.TypeAttributes -> System.Reflection.Emit.TypeBuilder
Public Function DefineNestedType (name As String, attr As TypeAttributes) As TypeBuilder

매개 변수

name
String

형식의 약식 이름입니다. name에는 내장된 null이 포함될 수 없습니다.

attr
TypeAttributes

형식의 특성입니다.

반환

정의된 중첩 형식입니다.

예외

중첩된 특성이 지정되지 않았습니다.

또는

이 형식이 봉인되어 있습니다.

또는

이 형식은 배열입니다.

또는

이 형식은 인터페이스지만 중첩된 형식은 인터페이스가 아닙니다.

또는

name의 길이가 0이거나 1023보다 큽니다.

또는

이 작업을 수행하면 현재 어셈블리에 FullName이 중복된 형식이 만들어집니다.

name이(가) null인 경우

설명

이 메서드는 바깥쪽 형식에서 메서드가 CreateType 호출된 후에도 중첩된 형식을 만드는 데 사용할 수 있습니다.

중첩된 형식을 완료해야 , GetNestedType또는 GetNestedTypes를 사용하여 GetMembers반영할 수 있습니다.

CreateType 첩 형식 및 중첩 형식을 완료해야 하는 순서는 의 설명을 참조하세요.

이 이전에 정의된 형식 또는 중첩된 형식의 이름과 동일한 경우 name 중복 이름이 반드시 만들어지는 것은 아닙니다. 중복되려면 네임스페이스 및 모든 중첩 형식을 포함하여 전체 이름이 동일해야 합니다.

적용 대상

DefineNestedType(String, TypeAttributes, Type, Int32)

Source:
TypeBuilder.cs
Source:
TypeBuilder.cs
Source:
TypeBuilder.cs

해당 이름, 특성, 형식의 총 크기 및 해당 형식이 확장하는 형식을 지정하여 중첩된 형식을 정의합니다.

public:
 System::Reflection::Emit::TypeBuilder ^ DefineNestedType(System::String ^ name, System::Reflection::TypeAttributes attr, Type ^ parent, int typeSize);
public System.Reflection.Emit.TypeBuilder DefineNestedType (string name, System.Reflection.TypeAttributes attr, Type? parent, int typeSize);
public System.Reflection.Emit.TypeBuilder DefineNestedType (string name, System.Reflection.TypeAttributes attr, Type parent, int typeSize);
member this.DefineNestedType : string * System.Reflection.TypeAttributes * Type * int -> System.Reflection.Emit.TypeBuilder
Public Function DefineNestedType (name As String, attr As TypeAttributes, parent As Type, typeSize As Integer) As TypeBuilder

매개 변수

name
String

형식의 약식 이름입니다. name에는 내장된 null이 포함될 수 없습니다.

attr
TypeAttributes

형식의 특성입니다.

parent
Type

중첩된 형식이 확장하는 형식입니다.

typeSize
Int32

형식의 총 크기입니다.

반환

정의된 중첩 형식입니다.

예외

중첩된 특성이 지정되지 않았습니다.

또는

이 형식이 봉인되어 있습니다.

또는

이 형식은 배열입니다.

또는

이 형식은 인터페이스지만 중첩된 형식은 인터페이스가 아닙니다.

또는

name의 길이가 0이거나 1023보다 큽니다.

또는

이 작업을 수행하면 현재 어셈블리에 FullName이 중복된 형식이 만들어집니다.

name이(가) null인 경우

설명

이 메서드는 바깥쪽 형식에서 메서드가 CreateType 호출된 후에도 중첩된 형식을 만드는 데 사용할 수 있습니다.

중첩된 형식을 완료해야 , GetNestedType또는 GetNestedTypes를 사용하여 GetMembers반영할 수 있습니다.

CreateType 첩 형식 및 중첩 형식을 완료해야 하는 순서는 의 설명을 참조하세요.

이 이전에 정의된 형식 또는 중첩된 형식의 이름과 동일한 경우 name 중복 이름이 반드시 만들어지는 것은 아닙니다. 중복되려면 네임스페이스 및 모든 중첩 형식을 포함하여 전체 이름이 동일해야 합니다.

적용 대상