Partager via


ConnectedServicesService.CreateConnectedService Method

Creates a new Connected Service associated to the team project.

Namespace:  Microsoft.TeamFoundation.Framework.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)

Syntax

'Declaration
Public Function CreateConnectedService ( _
    name As String, _
    teamProject As String, _
    kind As ConnectedServiceKind, _
    friendlyName As String, _
    description As String, _
    serviceUri As Uri, _
    endpoint As Uri, _
    credentialsXml As String _
) As ConnectedServiceMetadata
public ConnectedServiceMetadata CreateConnectedService(
    string name,
    string teamProject,
    ConnectedServiceKind kind,
    string friendlyName,
    string description,
    Uri serviceUri,
    Uri endpoint,
    string credentialsXml
)
public:
ConnectedServiceMetadata^ CreateConnectedService(
    String^ name, 
    String^ teamProject, 
    ConnectedServiceKind kind, 
    String^ friendlyName, 
    String^ description, 
    Uri^ serviceUri, 
    Uri^ endpoint, 
    String^ credentialsXml
)
member CreateConnectedService : 
        name:string * 
        teamProject:string * 
        kind:ConnectedServiceKind * 
        friendlyName:string * 
        description:string * 
        serviceUri:Uri * 
        endpoint:Uri * 
        credentialsXml:string -> ConnectedServiceMetadata
public function CreateConnectedService(
    name : String, 
    teamProject : String, 
    kind : ConnectedServiceKind, 
    friendlyName : String, 
    description : String, 
    serviceUri : Uri, 
    endpoint : Uri, 
    credentialsXml : String
) : ConnectedServiceMetadata

Parameters

  • name
    Type: System.String

    Name of the service such as subscription id or other GUID.

  • teamProject
    Type: System.String

    Name of the project associated with this service

  • friendlyName
    Type: System.String

    An optional friendly name to represent the service instead of 'name' which will often be a GUID.

  • description
    Type: System.String

    An optional description for the service

  • endpoint
    Type: System.Uri

    Required, the Url of the endpoint for the servcie

  • credentialsXml
    Type: System.String

    Required, crentials that allow for access to the service, in a publishsettings XML format

Return Value

Type: Microsoft.TeamFoundation.Framework.Client.ConnectedServiceMetadata
The ConnectedServiceMetadata for the new service

.NET Framework Security

See Also

Reference

ConnectedServicesService Class

Microsoft.TeamFoundation.Framework.Client Namespace