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!

ParameterBuilder.SetConstant

Sets the default value of the parameter.

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

Parameters

defaultValue
The default value of this parameter.

Remarks

Should throw the following exception but currently does not:

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

See Also

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