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
- requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
clientId
Type: System.StringThe clientId for the application to retrieve.
throwIfNotFound
Type: System.BooleanThrow OAuthApplicationNotFoundException if the application could not be found.
Return Value
Type: Microsoft.TeamFoundation.Framework.Server.OAuthApplication
The matching application
.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.