Delen via


TeamFoundationConnectedServicesService.GetConnectedService Method

Gets all info (including secret) for one connected service.

Namespace:  Microsoft.TeamFoundation.Server.Core
Assembly:  Microsoft.TeamFoundation.Server.Core (in Microsoft.TeamFoundation.Server.Core.dll)

Syntax

'Declaration
Public Function GetConnectedService ( _
    requestContext As TeamFoundationRequestContext, _
    name As String, _
    teamProject As String _
) As ConnectedService
public ConnectedService GetConnectedService(
    TeamFoundationRequestContext requestContext,
    string name,
    string teamProject
)
public:
ConnectedService^ GetConnectedService(
    TeamFoundationRequestContext^ requestContext, 
    String^ name, 
    String^ teamProject
)
member GetConnectedService : 
        requestContext:TeamFoundationRequestContext * 
        name:string * 
        teamProject:string -> ConnectedService
public function GetConnectedService(
    requestContext : TeamFoundationRequestContext, 
    name : String, 
    teamProject : String
) : ConnectedService

Parameters

  • name
    Type: System.String

    Name of services such as azure subscription ID.

  • teamProject
    Type: System.String

    Name of the project associated with this service.

Return Value

Type: Microsoft.TeamFoundation.Server.Core.ConnectedService
A ConnectedService with all associated data or null if it does not exist.

.NET Framework Security

See Also

Reference

TeamFoundationConnectedServicesService Class

Microsoft.TeamFoundation.Server.Core Namespace