This documentation is archived and is not being maintained.
ConnectedServicesService::CreateConnectedService Method
Visual Studio 2013
Creates a new Connected Service associated to the team project.
Namespace: Microsoft.TeamFoundation.Framework.Client
Assembly: Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)
public:
ConnectedServiceMetadata^ CreateConnectedService(
String^ name,
String^ teamProject,
ConnectedServiceKind kind,
String^ friendlyName,
String^ description,
Uri^ serviceUri,
Uri^ endpoint,
String^ credentialsXml
)
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
- kind
- Type: Microsoft.TeamFoundation.Framework.Client::ConnectedServiceKind
The kind of 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
- serviceUri
- Type: System::Uri
- 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::ConnectedServiceMetadataThe ConnectedServiceMetadata for the new service
- 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.
Show: