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
public FieldBuilder DefineUninitializedData(
 string name,
 int size,
 FieldAttributes attributes
public: FieldBuilder* DefineUninitializedData(
 String* name,
 int size,
 FieldAttributes attributes
public function DefineUninitializedData(
   name : String,
 size : int,
 attributes : FieldAttributes
) : FieldBuilder;


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

Return Value

A field to reference the data.


Exception Type Condition
ArgumentException The length of name is zero.


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.


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