Class ConsoleCommandParameterAttribute
Inheritance
System.Object
ConsoleCommandParameterAttribute
Namespace: DotNetNuke.Prompt
Assembly: DotNetNuke.dll
Syntax
public class ConsoleCommandParameterAttribute : Attribute
Constructors
| Improve this Doc View SourceConsoleCommandParameterAttribute(String, String, Boolean, String)
Initializes a new instance of the ConsoleCommandParameterAttribute class.
Declaration
public ConsoleCommandParameterAttribute(string name, string descriptionKey, bool required, string defaultValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
System.String | descriptionKey | |
System.Boolean | required | |
System.String | defaultValue |
ConsoleCommandParameterAttribute(String, String, Boolean)
Initializes a new instance of the ConsoleCommandParameterAttribute class.
Declaration
public ConsoleCommandParameterAttribute(string name, string descriptionKey, bool required)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
System.String | descriptionKey | |
System.Boolean | required |
ConsoleCommandParameterAttribute(String, String, String)
Initializes a new instance of the ConsoleCommandParameterAttribute class.
Declaration
public ConsoleCommandParameterAttribute(string name, string descriptionKey, string defaultValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
System.String | descriptionKey | |
System.String | defaultValue |
ConsoleCommandParameterAttribute(String, String)
Initializes a new instance of the ConsoleCommandParameterAttribute class.
Declaration
public ConsoleCommandParameterAttribute(string name, string descriptionKey)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
System.String | descriptionKey |
Properties
| Improve this Doc View SourceDefaultValue
Gets or sets the default value serialized as string.
Declaration
public string DefaultValue { get; set; }
Property Value
Type | Description |
---|---|
System.String |
DescriptionKey
Gets or sets the resource key for the description of this parameter.
Declaration
public string DescriptionKey { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Name
Gets or sets the name used in commands to access this parameter.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Required
Gets or sets a value indicating whether whether the parameter is required.
Declaration
public bool Required { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |