ModuleBuilder.DefineUninitializedData(String, Int32, FieldAttributes) Method (System.Reflection.Emit) (original) (raw)

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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.

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.

Remarks

Static is automatically included in attributes.

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

Applies to