CrmAuthenticationToken.ExtractCrmAuthenticationToken Method
![]() |
Used in a custom aspx page to retrieve the token information for the current user. This is needed to access the Web services.
Syntax
[Visual Basic .NET] Public Shared Function ExtractCrmAuthenticationToken( ByVal context As HttpContext, ByVal orgName As String ) As CrmAuthenticationToken
[C#] public static CrmAuthenticationToken ExtractCrmAuthenticationToken( HttpContext context, string orgName );
Parameters
context
Specifies the context for the user.
orgName
Specifies the organization name.
Return Value
Returns a CrmAuthenticationToken type.
Requirements
Namespace: Microsoft.Crm.Sdk
Assembly: Microsoft.Crm.Sdk.dll
See Also
Reference
© 2010 Microsoft Corporation. All rights reserved.

