Get Collaboration Name and Email Address from .NET SDK

回答済み
新規投稿

コメント

1件のコメント

  • Peter Christensen

    Hi

    The object you get in the entries will be a 'BoxEntity' as it could be either a user or a group. It has a 'Type' property you can check and the cast accordingly.

    Something like this

    collaborators.Entries.ForEach(collaboration =>
    {
      if(collaboration.AccessibleBy.Type.Equals("user")) {
        Console.WriteLine(((BoxUser)collaboration.AccessibleBy).Name + "::" + ((BoxUser)collaboration.AccessibleBy).Login);
      }
    });

    Best regards, Peter Christensen, Platform Solutions Engineer, Box

    0
    コメントアクション パーマリンク

投稿コメントは受け付けていません。