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!

FieldBuilder.SetConstant

Sets the default value of this field.

[Visual Basic]
Public Sub SetConstant( _
   ByVal defaultValue As Object _
)
[C#]
public void SetConstant(
   object defaultValue
);
[C++]
public: void SetConstant(
   Object* defaultValue
);
[JScript]
public function SetConstant(
   defaultValue : Object
);

Parameters

defaultValue
The new default value for this field.

Exceptions

Exception Type Condition
InvalidOperationException if the containing type has been created using TypeBuilder.CreateType().

See Also

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