Edit

Share via


ModuleBuilder.DefineUninitializedData(String, Int32, FieldAttributes) Method

Definition

Defines an uninitialized data field in the .sdata section of the portable executable (PE) file.

public:
 System::Reflection::Emit::FieldBuilder ^ DefineUninitializedData(System::String ^ name, int size, System::Reflection::FieldAttributes attributes);
public System.Reflection.Emit.FieldBuilder DefineUninitializedData(string name, int size, System.Reflection.FieldAttributes attributes);
member this.DefineUninitializedData : string * int * System.Reflection.FieldAttributes -> System.Reflection.Emit.FieldBuilder
Public Function DefineUninitializedData (name As String, size As Integer, attributes As FieldAttributes) As FieldBuilder

Parameters

name
String

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

size
Int32

The size of the data field.

attributes
FieldAttributes

The attributes for the field.

Returns

A field to reference the data.

Exceptions

The length of name is zero.

-or-

size is less than or equal to zero, or greater than or equal to 0x003f0000.

name is null.

Remarks

Static is automatically included in attributes.

The data defined by this method is not created until the CreateGlobalFunctions method is called.

Applies to