TeamFoundationOAuthService.QueryTokens Method
QueryTokens is used to retrieve the set of access tokens associated with a given identity within the given host.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Function QueryTokens ( _
requestContext As TeamFoundationRequestContext, _
identity As Identity _
) As List(Of OAuthToken)
public List<OAuthToken> QueryTokens(
TeamFoundationRequestContext requestContext,
Identity identity
)
public:
List<OAuthToken^>^ QueryTokens(
TeamFoundationRequestContext^ requestContext,
Identity^ identity
)
member QueryTokens :
requestContext:TeamFoundationRequestContext *
identity:Identity -> List<OAuthToken>
public function QueryTokens(
requestContext : TeamFoundationRequestContext,
identity : Identity
) : List<OAuthToken>
Parameters
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextRequest Context may be any host type. Tokens within this host are returned.
identity
Type: Microsoft.VisualStudio.Services.Identity.IdentityThe identity to retrieve the tokens.
Return Value
Type: System.Collections.Generic.List<OAuthToken>
Set of valid tokens for this specified identity.
.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.