Freigeben über


TeamFoundationOAuthService.GetApplication Method

Retrieve a registered application with the given clientId.

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

Syntax

'Declaration
Public Function GetApplication ( _
    requestContext As TeamFoundationRequestContext, _
    clientId As String, _
    throwIfNotFound As Boolean _
) As OAuthApplication
public OAuthApplication GetApplication(
    TeamFoundationRequestContext requestContext,
    string clientId,
    bool throwIfNotFound
)
public:
OAuthApplication^ GetApplication(
    TeamFoundationRequestContext^ requestContext, 
    String^ clientId, 
    bool throwIfNotFound
)
member GetApplication : 
        requestContext:TeamFoundationRequestContext * 
        clientId:string * 
        throwIfNotFound:bool -> OAuthApplication
public function GetApplication(
    requestContext : TeamFoundationRequestContext, 
    clientId : String, 
    throwIfNotFound : boolean
) : OAuthApplication

Parameters

  • clientId
    Type: System.String

    The clientId for the application to retrieve.

  • throwIfNotFound
    Type: System.Boolean

    Throw OAuthApplicationNotFoundException if the application could not be found.

Return Value

Type: Microsoft.TeamFoundation.Framework.Server.OAuthApplication
The matching application

.NET Framework Security

See Also

Reference

TeamFoundationOAuthService Class

Microsoft.TeamFoundation.Framework.Server Namespace