HttpExtensionsEAPUtkn Method |
Gets the user token from the cookie on the HttpContext object. If no
current HttpContext object exists (e.g. in the studio), a null or empty string is returned.
Namespace:
NetQuarry.Net
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static string EAPUtkn(
this HttpContext http
)
<ExtensionAttribute>
Public Shared Function EAPUtkn (
http As HttpContext
) As String
Parameters
- http
- Type: System.WebHttpContext
The current HttpContext object (may be null).
Return Value
Type:
StringThe user token, if context object is non-null, else a null or empty string.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
HttpContext. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also