Επεξεργασία

Κοινή χρήση μέσω


ModuleBuilder.DefineInitializedDataCore Method

Definition

When overridden in a derived class, defines an initialized data field in the .sdata section of the portable executable (PE) file.

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

Parameters

name
String

The name used to refer to the data. name cannot contain embedded nulls.

data
Byte[]

The binary large object (BLOB) of data.

attributes
FieldAttributes

A bitwise combination of the enumeration values that specifies the attributes for the field. The default is Static.

Returns

A field to reference the data.

Applies to