Partilhar via


GetUserNameByEmail Method

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Gets the user name associated with the specified e-mail address.

Namespace:  Microsoft.CommerceServer.Runtime.Profiles
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public Overrides Function GetUserNameByEmail ( _
    email As String _
) As String
'Usage
Dim instance As UpmMembershipProvider
Dim email As String
Dim returnValue As String

returnValue = instance.GetUserNameByEmail(email)
public override string GetUserNameByEmail(
    string email
)
public:
virtual String^ GetUserNameByEmail(
    String^ email
) override
public override function GetUserNameByEmail(
    email : String
) : String

Parameters

Return Value

Type: System..::.String
The user name associated with the specified e-mail address. If no match is found, return nullNothingnullptra null reference (Nothing in Visual Basic).

Remarks

Gets the user name associated with the specified e-mail address. The email is trimmed before the search begins.

Permissions

See Also

Reference

UpmMembershipProvider Class

UpmMembershipProvider Members

Microsoft.CommerceServer.Runtime.Profiles Namespace