TypeBuilder.DefineInitializedDataCore(String, Byte[], FieldAttributes) 方法

定義

在衍生類別中覆寫時,請在可攜式可執行檔的 .sdata 區段中定義初始化的資料欄位, (PE) 檔案。

protected:
 abstract System::Reflection::Emit::FieldBuilder ^ DefineInitializedDataCore(System::String ^ name, cli::array <System::Byte> ^ data, System::Reflection::FieldAttributes attributes);
protected abstract System.Reflection.Emit.FieldBuilder DefineInitializedDataCore (string name, byte[] data, System.Reflection.FieldAttributes attributes);
abstract member DefineInitializedDataCore : string * byte[] * System.Reflection.FieldAttributes -> System.Reflection.Emit.FieldBuilder
Protected MustOverride Function DefineInitializedDataCore (name As String, data As Byte(), attributes As FieldAttributes) As FieldBuilder

參數

name
String

用來參考資料的名稱。 name 不能包含內嵌 Null

data
Byte[]

資料的 blob。

attributes
FieldAttributes

列舉值的位元組合,指定欄位的屬性。

傳回

要參考資料的欄位。

適用於