CommerceContext.UserId Property (BCL)

The UserId property is a read/write String containing the user ID for the current user.

Definition

[Visual Basic .NET]

Public Property UserId As System.String

[C#]

public System.String UserId{get; set;} 

Property Value

A String containing the user ID for the current user.

Remarks

The OrganizationProfile property is dependent on being set by the UserProfile profile property or set explicitly. The UserProfile property is dependent on being set by UserId property or set explicitly, and the UserId property is dependent upon being set explicitly or obtaining the Id from the AuthTicket object, if it exists.

If the UserId property has not been previously set, then the get method tries to retrieve it from the current AuthTicket of the AuthenticationInfo object, assuming the CommerceAuthenticationModule object is enabled for the site.

Requirements

Namespace: Microsoft.CommerceServer.Runtime

Platforms: Windows 2000, Windows Server 2003

Assembly: Microsoft.CommerceServer.Runtime.dll

See Also

Code to Set Shipping Methods on a Basket on an ASP.NET Web Form

Code to Manipulate a Basket on an ASP.NET Web Form

Copyright © 2005 Microsoft Corporation.
All rights reserved.