BooleanArgumentAttribute Class

Summary

This attribute can be applied to bool-properties in option classes, to specify the option to pass to the executable in case of a false or true value. By default, no options will be sent for either value.
Assembly
Mercurial.Net.dll
Namespace
Mercurial.Attributes
Interfaces
  • _Attribute
Base Types
graph TD Base0["ArgumentAttribute"]-->Type click Base0 "/Cake.Hg/api/Mercurial.Attributes/ArgumentAttribute" Base1["Attribute"]-->Base0 Base2["object"]-->Base1 Interface0["_Attribute"]-.->Type Type["BooleanArgumentAttribute"] class Type type-node

Syntax

public sealed class BooleanArgumentAttribute : ArgumentAttribute, _Attribute

Attributes

Type Description
AttributeUsageAttribute

Constructors

Properties

Name Value Summary
FalseOption string
Gets or sets the option to pass to the Mercurial executable if the tagged bool property has a false value, or System.String.Empty if no option should be passed in that case.
TrueOption string
Gets or sets the option to pass to the Mercurial executable if the tagged bool property has a true value, or System.String.Empty if no option should be passed in that case.

Methods

Name Value Summary
GetOptions(object) string[]
Gets a collection of options or arguments to pass to the Mercurial executable, based on the property value from the options class.