Returns a IUserDirectoryPrincipal for the user or group with the specified name.
The name of the principal to look up.
A corresponding IUserDirectoryPrincipal for the specified name, if the principal was found in the directory; otherwise null (Nothing in Visual Basic).
System.ArgumentNullException |
principalName is null (Nothing in Visual Basic) or empty. |