This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.MsDeploy.
Summary
Used to declare a parameter during package or archive creation.
Can only be used with or
Also see the documentation at https://technet.microsoft.com/en-us/library/dd569084(v=ws.10).aspx
- Assembly
- Cake
.MsDeploy .dll - Namespace
- Cake
.MsDeploy .Parameters - Interfaces
- Base Types
-
- Object
- BaseParameter
graph BT
Type-->Base0["BaseParameter"]
click Base0 "/api/Cake.MsDeploy.Parameters/BaseParameter"
Base0-->Base1["Object"]
Type-.->Interface0["IParameter"]
click Interface0 "/api/Cake.MsDeploy.Parameters/IParameter"
Type-.->Interface1["IMsDeployArgument"]
click Interface1 "/api/Cake.MsDeploy/IMsDeployArgument"
Type["DeclareParameter"]
class Type type-node
Syntax
public class DeclareParameter : BaseParameter, IParameter, IMsDeployArgument
Constructors
Name | Summary |
---|---|
DeclareParameter |
Properties
Name | Value | Summary |
---|---|---|
DefaultValue | string |
Optionally specifies a default value for a parameter
|
Description | string |
An optional user-supplied string that describes the purpose of the parameter
|
Kind | Nullable |
specifies the parameter kind
|
Match | string |
Specifies an item to be matched
|
Name | string |
Name of the declared parameter
|
Scope | string |
The scope of the specified parameter kind
|
Tags | IEnumerable |
Optionally sets attributes about the parameter for later reference
|
Methods
Name | Value | Summary |
---|---|---|
Append |
void |
Converts the object into its MSDeploy command line equivalent and Appends it to the stringbuilder
|
Append |
void |
Inherited from BaseParameter
|
To |
string |
Converts the DeclareParameter into its commmand line argument
|
Extension Methods
Name | Value | Summary |
---|---|---|
Dump |
string |
Get a basic string representation of specified object.
From LoggingExtensions
Requires the Cake.Incubator addin
|
IsIn |
bool |
Checks if the source is contained in a list
From EnumerableExtensions
Requires the Cake.Incubator addin
|
NotNull |
void |
Throws an exception if the specified parameter's value is null.
From Extensions
Requires the Cake.Ftp addin
|
NotNull |
void |
From IssuesArgumentChecks
Requires the Cake.Issues addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
To |
string |
From StringExtensions
Requires the Cake.Issues addin
|
See Also
- Providers.MsDeployProviderType.package
- Providers.MsDeployProviderType.archiveDir