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!

InstallContext.IsParameterTrue

Determines whether the specified command line parameter is true.

[Visual Basic]
Overridable Public Function IsParameterTrue( _
   ByVal paramName As String _
) As Boolean
[C#]
public virtual bool IsParameterTrue(
   string paramName
);
[C++]
public: virtual bool IsParameterTrue(
   String* paramName
);
[JScript]
public function IsParameterTrue(
   paramName : String
) : Boolean;

Parameters

paramName
The name of the command line parameter to check for.

Return Value

true if the given parameter is set to "yes", "true", "1", or an empty string (""); otherwise, false.

Remarks

This method accesses the Parameters property, which contains a parsed version of the command line arguments, to determine whether the given parameter is true.

See Also

InstallContext Class | InstallContext Members | System.Configuration.Install Namespace | Parameters