ModuleBuilder.DefineInitializedDataCore Metódus

Definíció

Ha felülbírál egy származtatott osztályban, inicializált adatmezőt határoz meg a hordozható végrehajtható (PE) fájl .sdata szakaszában.

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

Paraméterek

name
String

Az adatokra való hivatkozáshoz használt név. name nem tartalmazhat beágyazott null értékeket.

data
Byte[]

Az adatok bináris nagy objektuma (BLOB).

attributes
FieldAttributes

A mező attribútumait meghatározó enumerálási értékek bitenkénti kombinációja. Az alapértelmezett érték a Static.

Válaszok

Az adatokra hivatkozó mező.

A következőre érvényes: