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
- email
Type: System..::.String
The e-mail address to search for.
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
- 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.