CreateMembershipUser Method (String)
Creates a new UpmMembershipUser.
Namespace: Microsoft.CommerceServer.Runtime.Profiles
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Protected Overridable Function CreateMembershipUser ( _
userName As String _
) As UpmMembershipUser
'Usage
Dim userName As String
Dim returnValue As UpmMembershipUser
returnValue = Me.CreateMembershipUser(userName)
protected virtual UpmMembershipUser CreateMembershipUser(
string userName
)
protected:
virtual UpmMembershipUser^ CreateMembershipUser(
String^ userName
)
protected function CreateMembershipUser(
userName : String
) : UpmMembershipUser
Parameters
- userName
Type: System..::.String
Return Value
Type: Microsoft.CommerceServer.Runtime.Profiles..::.UpmMembershipUser
A new UpmMembershipUser object that represents an existing user.
Remarks
This can be overridden to create a user of a new type that derives from UpmMembershipUser. This overload creates an on-demand user that only retrieves the profile when it is used.
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.