Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ahmed Mohamed 4 posts 84 karma points
    Jun 09, 2021 @ 09:50
    Ahmed Mohamed
    0

    Umbraco identity

    how to select all member with strong type like (umbraco.web.PublishedModels.Member). i try to get by this code but how to select properties value
    var allmember = services.MemberService.GetMembersByMemberType("member"); note this when i try to use Select(x => x as Umbraco.Web.PublishedModels.Member); all data is null

  • Huw Reddick 1929 posts 6697 karma points MVP 2x c-trib
    Jun 11, 2021 @ 17:05
    Huw Reddick
    100

    The MemberService functions return IMember objects, so in your example allmember will be an IEnumerable

    you can get property values from an iMember object by doing

    member.GetValue("propertyAlias")

Please Sign in or register to post replies

Write your reply to:

Draft