GetUserIDFromCookieAndKey Method
Use this method to retrieve the user identifier from a specified cookie using an encryption key.
Namespace: Microsoft.CommerceServer.Runtime
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Function GetUserIDFromCookieAndKey ( _
cookie As String, _
encryptionKey As String _
) As String
'Usage
Dim instance As AuthManager
Dim cookie As String
Dim encryptionKey As String
Dim returnValue As String
returnValue = instance.GetUserIDFromCookieAndKey(cookie, _
encryptionKey)
public string GetUserIDFromCookieAndKey(
string cookie,
string encryptionKey
)
public:
String^ GetUserIDFromCookieAndKey(
String^ cookie,
String^ encryptionKey
)
public function GetUserIDFromCookieAndKey(
cookie : String,
encryptionKey : String
) : String
Parameters
- cookie
Type: System..::.String
The cookie.
- encryptionKey
Type: System..::.String
The encryption key.
Return Value
Type: System..::.String
The user identification from the specified cookie and key.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | cookie or encryptionKey is nullNothingnullptra null reference (Nothing in Visual Basic). |
Remarks
Retrieves the user identifier from a specified cookie using an encryption key.
Permissions
- 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.