/// <summary> /// Returns the appropriate member string based on the parameter set. /// </summary> protected string GetMember() { switch (ParameterSetName) { case ParameterSetNames.User: return($"user:{User.ToLower()}"); case ParameterSetNames.Group: return($"group:{Group.ToLower()}"); case ParameterSetNames.Domain: return($"domain:{Domain.ToLower()}"); case ParameterSetNames.ServiceAccount: return($"serviceAccount:{ServiceAccount.ToLower()}"); default: throw UnknownParameterSetException; } }