CreateMembershipUser Method (Profile)
Creates a new UpmMembershipUser from an existing Profile object.
Namespace: Microsoft.CommerceServer.Runtime.Profiles
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Protected Overridable Function CreateMembershipUser ( _
profile As Profile _
) As UpmMembershipUser
'Usage
Dim profile As Profile
Dim returnValue As UpmMembershipUser
returnValue = Me.CreateMembershipUser(profile)
protected virtual UpmMembershipUser CreateMembershipUser(
Profile profile
)
protected:
virtual UpmMembershipUser^ CreateMembershipUser(
Profile^ profile
)
protected function CreateMembershipUser(
profile : Profile
) : UpmMembershipUser
Parameters
- profile
Type: Microsoft.CommerceServer.Runtime.Profiles..::.Profile
Profile object for the UpmMembershipUser object.
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 a user from an existing Profile object.
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.