ModuleBuilder.DefineInitializedDataCore 方法

定義

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

C#
protected abstract System.Reflection.Emit.FieldBuilder DefineInitializedDataCore(string name, byte[] data, System.Reflection.FieldAttributes attributes);

參數

name
String

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

data
Byte[]

資料的二進位大型物件 (BLOB)。

attributes
FieldAttributes

列舉值的位元組合,指定欄位的屬性。 預設值為 Static

傳回

要參考資料的欄位。

適用於

產品 版本
.NET 8, 9, 10