Umbraco get member by username by c#.

umbraco Get member by email address

Member memInfo = GetMemberFromEmail("xyz@gmail.com");

Get member from cache in umbraco

Member currentMem = Member.GetCurrentMember();
Member memInfo = GetMemberFromCache(currentMem.Id);

Get member by username in umbraco

Member[] memberList = GetMemberByName("username", false);

Get member by Name instead of user name in umbraco

Member[] memberList = GetMemberByName("name", true);

umbraco Get current member information

Member currentMem = Member.GetCurrentMember();

umbraco Get current member loginName

Member currentMem = Member.GetCurrentMember();
string memeberLoginName = currentMem.LoginName;

umbraco Get current member password

Member currentMem = Member.GetCurrentMember();
string currentMemPassword = currentMem.Password;

umbraco Get current member Id

Member currentMem = Member.GetCurrentMember();
int memberId = currentMem.Id;

I hope it will help 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s