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
- requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
name
Type: System.StringName of services such as azure subscription ID.
teamProject
Type: System.StringName 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
- 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.