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!

ICodeSourceFile.CreateParameter

Constructs a new parameter object.

[Visual Basic]
Function CreateParameter( _
   ByVal name As String, _
   ByVal type As ICodeClass, _
   ByVal value As Object _
) As ICodeParameter
[C#]
ICodeParameter CreateParameter(
   string name,
   ICodeClass type,
   object value
);
[C++]
ICodeParameter* CreateParameter(
   String* name,
   ICodeClass* type,
   Object* value
) = 0;
[JScript]
function CreateParameter(
   name : String,
   type : ICodeClass,
   value : Object
) : ICodeParameter;

Parameters

name
The name to give the parameter.
type
The type of the parameter.
value
The default value for the parameter. Passing in a null reference (in Visual Basic Nothing) for this will result in no default being set. This can either be a Variant, to represent a specific value, or an object that implements one of the expression interfaces.

Return Value

The newly created parameter object.

See Also

ICodeSourceFile Interface | ICodeSourceFile Members | System.ComponentModel.Design.CodeModel Namespace | ICodeArrayCreateExpression | ICodeObjectCreateExpression | ICodeMethodInvokeExpression | ICodeNameReferenceExpression