Class CommandShellParameterCollection
Contains a list of parameter
Inheritance
System.Object
CommandShellParameterCollection
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Simplic.CommandShell
Assembly: Simplic.CommandShell.dll
Syntax
public class CommandShellParameterCollection
Constructors
| Improve this Doc View SourceCommandShellParameterCollection()
Create parameter collection
Declaration
public CommandShellParameterCollection()
Properties
| Improve this Doc View SourceParameter
List with all parameter
Declaration
public IDictionary<string, CommandShellParameter> Parameter { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, CommandShellParameter> |
Methods
| Improve this Doc View SourceContainsParameter(String)
Proof wether a parameter exists
Declaration
public bool ContainsParameter(string parameterName)
Parameters
Type | Name | Description |
---|---|---|
System.String | parameterName | Name of the parameter |
Returns
Type | Description |
---|---|
System.Boolean | True if the parameter exists |
GetParameter(String)
Get a parameter from the collection
Declaration
public CommandShellParameter GetParameter(string parameterName)
Parameters
Type | Name | Description |
---|---|---|
System.String | parameterName | Name of the parameter |
Returns
Type | Description |
---|---|
CommandShellParameter | Instance of a shellparameter if found, else null |
GetParameterValueAsString(String)
Get a parameter value as a string.
Declaration
public string GetParameterValueAsString(string parameterName)
Parameters
Type | Name | Description |
---|---|---|
System.String | parameterName | Name of the parameter |
Returns
Type | Description |
---|---|
System.String | Returns empty string if the parameter does not exists |