adTempus API
ArcanaDevelopment.adTempus.Client.Collections Namespace / OptionCollection Class / GetOptionValue Method / GetOptionValue(String,Boolean) Method
The name of the option to get (case-insensitive)
The default value to return if the option does not exist


In This Topic
    GetOptionValue(String,Boolean) Method
    In This Topic
    Gets the value of the option with the specified name
    Syntax
    'Declaration
     
    
    Public Overloads Function GetOptionValue( _
       ByVal optionName As String, _
       ByVal defaultValue As Boolean _
    ) As Boolean
    public bool GetOptionValue( 
       string optionName,
       bool defaultValue
    )
    public:
    bool GetOptionValue( 
       String^ optionName,
       bool defaultValue
    ) 

    Parameters

    optionName
    The name of the option to get (case-insensitive)
    defaultValue
    The default value to return if the option does not exist

    Return Value

    The OptionValue of the option with the specified name, or defaultValue if the collection does not contain an option with that name or the value cannot be converted to the required type.
    See Also