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!

8.1.4 Method parameters

The parameters of a method, if any, are declared by the method's formal parameter list. The formal parameter list consists of zero or more formal parameters, separated by commas. If no type is specified, it is implicitly Object. However, if one parameter includes an As clause, all parameters must specify them.. A parameter which does not specify either ByRef or ByVal defaults to ByVal.

Formal parameter names are scoped to the entire body of the method and are always publicly accessible. A method invocation creates a copy, specific to that invocation, of the formal parameters, and the argument list of the invocation assigns values or variable references to the newly created formal parameters.

FormalParameterList ::=
 FormalParameter |
 FormalParameterList , FormalParameter
FormalParameter ::=
 ParameterModifier+ [ Attributes ] Identifier [ As TypeName ] [ = ConstantExpression ]
ParameterModifier ::= ByRef | ByVal | Optional | ParamArray