TypeBuilder.DefineInitializedData(String, Byte[], FieldAttributes) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
ポータブル実行可能ファイル (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 または data が null。
CreateType() は以前に呼び出されています。
注釈
attributes パラメーターにFieldAttributes.Staticを含めなくても、このメソッドで作成したフィールドはstaticされます。