TypeBuilder.DefineInitializedData(String, Byte[], FieldAttributes) 메서드

정의

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

public:
 System::Reflection::Emit::FieldBuilder ^ DefineInitializedData(System::String ^ name, cli::array <System::Byte> ^ data, System::Reflection::FieldAttributes attributes);
public System.Reflection.Emit.FieldBuilder DefineInitializedData (string name, byte[] data, System.Reflection.FieldAttributes attributes);
member this.DefineInitializedData : string * byte[] * System.Reflection.FieldAttributes -> System.Reflection.Emit.FieldBuilder
Public Function DefineInitializedData (name As String, data As Byte(), attributes As FieldAttributes) As FieldBuilder

매개 변수

name
String

데이터를 참조하는 데 사용되는 이름입니다. name에는 내장된 null이 포함될 수 없습니다.

data
Byte[]

데이터의 BLOB입니다.

attributes
FieldAttributes

필드에 대한 특성입니다.

반환

데이터를 참조할 필드입니다.

예외

name의 길이가 0입니다.

또는

데이터의 크기가 0보다 작거나 같습니다. 또는 0x3f0000보다 크거나 같습니다.

name 또는 datanull인 경우

CreateType()이 이전에 호출되었습니다.

설명

매개 변수에 를 포함하지 FieldAttributes.Static 않더라도 이 메서드static를 사용하여 만드는 필드는 입니다attributes.

적용 대상