LocalTrustee

Gets or sets the local user or group being assigned.

Syntax

string LocalTrustee {get; set;}

Property value

The local trustee; either a group or user. You can set either a name or ID for a local user. A local group string begins with the type flag %. You cannot specify a null or empty string. A user or group name string must match the regular expression (Regex):

@"^%?[\.a-zA-Z0-9_-]+\$?@localhost$"

A user ID string must match the regular expression:

@"^#[0-9]+@localhost$"

Exceptions

LocalTrustee may throw one of the following exceptions:

  • ArgumentException if the local trustee string is null or empty.
  • ApplicationException if the method fails to update the role assignment (see the message returned by the exception for the reason).