Copied to clipboard

Flag this post as spam?

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


  • Le Xuan Trung 10 posts 80 karma points
    May 19, 2016 @ 19:30
    Le Xuan Trung
    0

    Get all properties of document type.

    Hi alll. I used query

    var nodes= Model.Content.Descendants().Where(x => x.Level == 3);
    

    to get all node childs, but i can't get the own properties of these nodes.

    var isNull = false;
     @foreach (var item in nodes)
        {
            isNull = item.IsNull("Content") ? true : false;
        }
    

    the result always is "true" (NULL). please help me. I want get the properties in Document type. Thanks all.

  • Tommy Enger 72 posts 277 karma points c-trib
    May 19, 2016 @ 20:13
    Tommy Enger
    1

    Try this inside the foreach loop: item.GetPropertyValue("Content")

Please Sign in or register to post replies

Write your reply to:

Draft