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.

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

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

Tuote Versiot
.NET 8, 9, 10