NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

TypeBuilder.DefineInitializedData

Defines initialized data field in the .sdata section of the PE file.

[Visual Basic]
Public Function DefineInitializedData( _
   ByVal name As String, _
   ByVal data() As Byte, _
   ByVal attributes As FieldAttributes _
) As FieldBuilder
[C#]
public FieldBuilder DefineInitializedData(
   string name,
   byte[] data,
   FieldAttributes attributes
);
[C++]
public: FieldBuilder* DefineInitializedData(
   String* name,
   unsigned char* data[],
   FieldAttributes attributes
);
[JScript]
public function DefineInitializedData(
   name : String,
   data : Byte[],
   attributes : FieldAttributes
) : FieldBuilder;

Parameters

name
The name used to refer to the data.
data
[To be supplied.]
attributes
[To be supplied.]

Return Value

A field to reference the data.

Exceptions

Exception Type Condition
ArgumentNullException if name is a null reference (in Visual Basic Nothing)
InvalidOperationException if CreateGlobalFunctions has been previously called

Requirements

NGWS Runtime Security:

ReflectionPermission SecurityAction.Demand, ReflectionEmit

See Also

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