TfsConfigurationServerFactory.GetConfigurationServer Method (RegisteredConfigurationServer, ICredentialsProvider)
Gets the TfsConfigurationServer instance associated with the specified RegisteredConfigurationServer instance.
Namespace: Microsoft.TeamFoundation.Client
Assembly: Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)
Syntax
声明
Public Shared Function GetConfigurationServer ( _
application As RegisteredConfigurationServer, _
fallbackCredentialsProvider As ICredentialsProvider _
) As TfsConfigurationServer
public static TfsConfigurationServer GetConfigurationServer(
RegisteredConfigurationServer application,
ICredentialsProvider fallbackCredentialsProvider
)
public:
static TfsConfigurationServer^ GetConfigurationServer(
RegisteredConfigurationServer^ application,
ICredentialsProvider^ fallbackCredentialsProvider
)
static member GetConfigurationServer :
application:RegisteredConfigurationServer *
fallbackCredentialsProvider:ICredentialsProvider -> TfsConfigurationServer
public static function GetConfigurationServer(
application : RegisteredConfigurationServer,
fallbackCredentialsProvider : ICredentialsProvider
) : TfsConfigurationServer
Parameters
- application
Type: Microsoft.TeamFoundation.Client.RegisteredConfigurationServer
The RegisteredConfigurationServer instance containing information about the server.
- fallbackCredentialsProvider
Type: Microsoft.TeamFoundation.Client.ICredentialsProvider
The credentials provider to use if the environment does not already supply one.
Return Value
Type: Microsoft.TeamFoundation.Client.TfsConfigurationServer
The TfsConfigurationServer instance associated with the server described in the specified RegisteredConfigurationServer.
.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.
See Also
Reference
TfsConfigurationServerFactory Class