Switch Option Class
This defines a switch option
Definition
Namespace: Sandcastle.Core.CommandLine
Assembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2026.3.29.0
Assembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2026.3.29.0
C#
public sealed class SwitchOption : BaseOptionVB
Public NotInheritable Class SwitchOption
Inherits BaseOptionC++
public ref class SwitchOption sealed : public BaseOptionF#
[<SealedAttribute>]
type SwitchOption =
class
inherit BaseOption
end- Inheritance
- Object BaseOption SwitchOption
Remarks
A switch option is one that is only represented by its name
Constructors
| SwitchOption | Constructor |
Properties
| Description |
This read-only property returns the option description
(Inherited from BaseOption) |
| IsPresent |
This read-only property is used to determine whether or not the option value was present on the
command line.
(Inherited from BaseOption) |
| Name |
This read-only property returns the option name
(Inherited from BaseOption) |
| RequiredMessage |
This is used to get or set a message to display if the option is missing
(Inherited from BaseOption) |
| Value |
This property is used to get or set the option value
(Inherited from BaseOption) |
Methods
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| GetHashCode | Serves as the default hash function. (Inherited from Object) |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| ToString | Returns a string that represents the current object. (Inherited from Object) |