This documentation is archived and is not being maintained.

ModuleBuilder.DefineUninitializedData Method

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

[Visual Basic]
Public Function DefineUninitializedData( _
   ByVal name As String, _
   ByVal size As Integer, _
   ByVal attributes As FieldAttributes _
) As FieldBuilder
[C#]
public FieldBuilder DefineUninitializedData(
 string name,
 int size,
 FieldAttributes attributes
);
[C++]
public: FieldBuilder* DefineUninitializedData(
 String* name,
 int size,
 FieldAttributes attributes
);
[JScript]
public function DefineUninitializedData(
   name : String,
 size : int,
 attributes : FieldAttributes
) : FieldBuilder;

Parameters

name
The name used to refer to the data. name cannot contain embedded nulls.
size
The size of the data field.
attributes
The attributes for the field.

Return Value

A field to reference the data.

Exceptions

Exception Type Condition
ArgumentException The length of name is zero.

-or-

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

ArgumentNullException name is a null reference (Nothing in Visual Basic).
InvalidOperationException CreateGlobalFunctions has been previously called.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

ModuleBuilder Class | ModuleBuilder Members | System.Reflection.Emit Namespace

Show: