Class FlagParameterAttribute
Attribute to define the help for the flag parameter.
Inheritance
System.Object
FlagParameterAttribute
Namespace: Dnn.PersonaBar.Library.Prompt.Attributes
Assembly: Dnn.PersonaBar.Library.dll
Syntax
public class FlagParameterAttribute : Attribute
Constructors
| Improve this Doc View SourceFlagParameterAttribute(String, String, String, Boolean)
Initializes a new instance of the FlagParameterAttribute class.
Declaration
public FlagParameterAttribute(string flag, string description, string type, bool required)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | flag | |
| System.String | description | |
| System.String | type | |
| System.Boolean | required |
FlagParameterAttribute(String, String, String, String, Boolean)
Initializes a new instance of the FlagParameterAttribute class.
Declaration
public FlagParameterAttribute(string flag, string description, string type, string defaultValue, bool required)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | flag | |
| System.String | description | |
| System.String | type | |
| System.String | defaultValue | |
| System.Boolean | required |
FlagParameterAttribute(String, String, String, String)
Initializes a new instance of the FlagParameterAttribute class.
Declaration
public FlagParameterAttribute(string flag, string description, string type, string defaultValue)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | flag | |
| System.String | description | |
| System.String | type | |
| System.String | defaultValue |
FlagParameterAttribute(String, String, String)
Initializes a new instance of the FlagParameterAttribute class.
Declaration
public FlagParameterAttribute(string flag, string description, string type)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | flag | |
| System.String | description | |
| System.String | type |
Properties
| Improve this Doc View SourceDefaultValue
Gets or sets default value of the flag.
Declaration
public string DefaultValue { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Description
Gets or sets description of flag.
Declaration
public string Description { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Flag
Gets or sets name of the flag.
Declaration
public string Flag { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Required
Gets or sets a value indicating whether is flag required or not.
Declaration
public bool Required { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Type
Gets or sets type of the flag value expected.
Declaration
public string Type { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |