新しいBoxサポートサイトへようこそ。 変更点の詳細はこちらをご確認ください .

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
    コメントアクション Permalink

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