Business Analyst Online API for Silverlight 2.2 Reference
SetOptionalParameter Method
See Also  Send Feedback
ESRI.ArcGIS.Client.BACore.Client Namespace > BATaskUtils Class : SetOptionalParameter Method

variables
Request variables to set the parameter for.
obj
An object to get the parameter from.
name
Parameter name.
defaultValue
Default value to be used if the parameter value is empty or missing.

Glossary Item Box

Sets an optional parameter with the given name and default value.

Syntax

 
Visual Basic (Declaration)
C#
 
 

Parameters

variables
Request variables to set the parameter for.
obj
An object to get the parameter from.
name
Parameter name.
defaultValue
Default value to be used if the parameter value is empty or missing.

Exceptions

ExceptionDescription
BARequestErrorFailed to set variable because its value has no overriden ToString method or the ToString method failed.

Remarks

The parameter is set if its value or default value is nonempty.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2010-2012 ESRI Inc. All Rights Reserved.