ModuleBuilder.DefineUninitializedDataCore 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當在衍生類別中覆寫時,會在可攜式執行檔(PE)檔案的 .sdata 區段中定義一個未初始化的資料欄位。
protected:
abstract System::Reflection::Emit::FieldBuilder ^ DefineUninitializedDataCore(System::String ^ name, int size, System::Reflection::FieldAttributes attributes);
protected abstract System.Reflection.Emit.FieldBuilder DefineUninitializedDataCore(string name, int size, System.Reflection.FieldAttributes attributes);
abstract member DefineUninitializedDataCore : string * int * System.Reflection.FieldAttributes -> System.Reflection.Emit.FieldBuilder
Protected MustOverride Function DefineUninitializedDataCore (name As String, size As Integer, attributes As FieldAttributes) As FieldBuilder
參數
- name
- String
這個名稱過去用來指稱這些資料。
name 無法包含嵌入的空。
- size
- Int32
資料欄位的大小。
- attributes
- FieldAttributes
一個位元組合的列舉值,用來指定欄位的屬性。
傳回
一個用來參考資料的欄位。