adTempus API
ArcanaDevelopment.adTempus.Client.Collections Namespace / OptionCollection Class / SetOptionValue Method / SetOptionValue<T>(String,Nullable<T>) Method
The name of the option to set (case-insensitive)
The new value for the option


In This Topic
    SetOptionValue<T>(String,Nullable<T>) Method
    In This Topic
    Sets the value of the option with the specified name, creating the option if necessary
    Syntax
    'Declaration
     
    
    <NotNullAttribute()>
    Public Overloads Function SetOptionValue(Of T As {New, Enum, Struct})( _
       ByVal optionName As String, _
       ByVal value As Nullable(Of T) _
    ) As Option
    [NotNull()]
    public Option SetOptionValue<T>( 
       string optionName,
       Nullable<T> value
    )
    where T: new(), Enum, struct
    [NotNull()]
    public:
    Option^ SetOptionValuegeneric<typename T>
    ( 
       String^ optionName,
       Nullable<T^> value
    ) 
    where T: gcnew(), Enum, value class

    Parameters

    optionName
    The name of the option to set (case-insensitive)
    value
    The new value for the option

    Type Parameters

    T

    Return Value

    The new or existing Option
    Remarks
    This method looks for an existing option with the specified optionName. If none exists, it is created.
    See Also