79113429

Date: 2024-10-22 09:50:32
Score: 0.5
Natty:
Report link

You can cast the AccessRights Properties to Array and so you will get the result from the 1st element of the array.

Array accessRights = (obj.Properties["AccessRights"].Value as Array);
String result = accessRights.GetValue(0).ToString();

by using this way no need to cast the AccessRights Properties to Microsoft.Exchange.Management.RecipientTasks.MailboxRights[].

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Manoj A