다음을 통해 공유


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

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

See Also

Reference

AuthManager Class

AuthManager Members

Microsoft.CommerceServer.Runtime Namespace