Skip to content

IBooleanParameter Interface#

Interface class for boolean parameters.

Syntax#

C#

public interface IBooleanParameter : IParameter

VB

Public Interface IBooleanParameter
    Inherits IParameter

The IBooleanParameter type exposes the following members.

Properties#

NameDescription
Public propertyAdvanced The advanced parameter settings, if available. (Inherited from IParameter.)
Public propertyFullName The full name of the parameter including path information. (Inherited from IParameter.)
Public propertyIsEmpty Indicates if the parameter is empty. If true, the parameter is invalid or does not exist. If a requested parameter does not exist in a parameter collection, an empty parameter object will be returned to simplify handling. An empty parameter is never readable or writable. (Inherited from IParameter.)
Public propertyIsReadable Indicates if the parameter is readable. (Inherited from IParameter.)
Public propertyIsWritable Indicates if the parameter is writable. (Inherited from IParameter.)
Public propertyName The name of the parameter without path information. (Inherited from IParameter.)
 

Methods#

NameDescription
Public methodGetValue Gets the current parameter value.
Public methodParseAndSetValue Parses the value as string and sets the value. (Inherited from IParameter.)
Public methodSetValue Sets the provided boolean value.
Public methodToString The parameter value as a string. (Inherited from IParameter.)
 

Events#

NameDescription
Public eventParameterChanged This event fires after any of the parameter properties (value, readability, writability, or advanced parameter settings) have changed. (Inherited from IParameter.)
Public eventParameterValueChanged This event fires after the parameter value has changed. (Inherited from IParameter.)
 

Extension Methods#

NameDescription
Public Extension MethodGetValueOrDefault Gets the parameter value if the parameter is readable. Otherwise, returns the default value. (Defined by IBooleanParameterExtensions.)
Public Extension MethodTrySetValue Sets the provided boolean value if the parameter is writable. (Defined by IBooleanParameterExtensions.)
 

IBooleanParameter.GetValue Method#

Gets the current parameter value.

Syntax#

C#

bool GetValue()

VB

Function GetValue As Boolean

Return Value#

Type: Boolean
Returns the current boolean value.

Remarks#

Preconditions: The parameter must be readable.

Thread Safety: This method is synchronized with the source of the parameter collection, if any.

Error Safety: Can throw exceptions if the parameter is not readable or if reading the value fails.

IBooleanParameter.SetValue Method#

Sets the provided boolean value.

Syntax#

C#

void SetValue(
    bool value
)

VB

Sub SetValue ( 
    value As Boolean
)

Parameters#

 

value
Type: System.Boolean
The boolean value to set.

Remarks#

Preconditions:
 

  • The parameter must be writable.
  Thread Safety: This method is synchronized with the source of the parameter collection, if any.

Error Safety: Can throw exceptions if writing the value fails or if the parameter is not writable.