DeploymentService.CreateDeploymentEnvironment Method
Create a new Deployment Environment
Namespace: Microsoft.TeamFoundation.Build.Client
Assembly: Microsoft.TeamFoundation.Build.Client (in Microsoft.TeamFoundation.Build.Client.dll)
Syntax
'Declaration
Public Function CreateDeploymentEnvironment ( _
name As String, _
teamProject As String, _
connectedServiceName As String, _
environmentKind As DeploymentEnvironmentKind, _
friendlyName As String, _
description As String, _
environmentProperties As Dictionary(Of String, String) _
) As DeploymentEnvironmentMetadata
public DeploymentEnvironmentMetadata CreateDeploymentEnvironment(
string name,
string teamProject,
string connectedServiceName,
DeploymentEnvironmentKind environmentKind,
string friendlyName,
string description,
Dictionary<string, string> environmentProperties
)
public:
DeploymentEnvironmentMetadata^ CreateDeploymentEnvironment(
String^ name,
String^ teamProject,
String^ connectedServiceName,
DeploymentEnvironmentKind environmentKind,
String^ friendlyName,
String^ description,
Dictionary<String^, String^>^ environmentProperties
)
member CreateDeploymentEnvironment :
name:string *
teamProject:string *
connectedServiceName:string *
environmentKind:DeploymentEnvironmentKind *
friendlyName:string *
description:string *
environmentProperties:Dictionary<string, string> -> DeploymentEnvironmentMetadata
public function CreateDeploymentEnvironment(
name : String,
teamProject : String,
connectedServiceName : String,
environmentKind : DeploymentEnvironmentKind,
friendlyName : String,
description : String,
environmentProperties : Dictionary<String, String>
) : DeploymentEnvironmentMetadata
Parameters
name
Type: System.Stringthe name of the environment
- teamProject
Type: System.String
- connectedServiceName
Type: System.String
environmentKind
Type: Microsoft.TeamFoundation.Build.Client.DeploymentEnvironmentKindThe kind of the environment
friendlyName
Type: System.StringAn optional friendly name for the environment
description
Type: System.StringAn optional description for the environment
environmentProperties
Type: System.Collections.Generic.Dictionary<String, String>Any environment specific properties
Return Value
Type: Microsoft.TeamFoundation.Build.Client.DeploymentEnvironmentMetadata
The DeploymentEnvironmentMetadata for the new enviornment
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.