public PowerShellResults <UserMailboxFolderPermission> GetObject(Identity identity)
        {
            MailboxFolderPermissionIdentity mailboxFolderPermissionIdentity = identity.ToMailboxFolderPermissionIdentity();
            PSCommand pscommand = new PSCommand().AddCommand("Get-MailboxFolderPermission");

            pscommand.AddParameter("User", mailboxFolderPermissionIdentity.RawIdentity);
            return(base.GetObject <UserMailboxFolderPermission>(pscommand, (Identity)mailboxFolderPermissionIdentity.MailboxFolderId.ToMailboxFolderIdParameter()));
        }
        public PowerShellResults <UserMailboxFolderPermission> SetObject(Identity identity, SetUserMailboxFolderPermission properties)
        {
            properties.FaultIfNull();
            MailboxFolderPermissionIdentity mailboxFolderPermissionIdentity = identity.ToMailboxFolderPermissionIdentity();

            properties.User             = mailboxFolderPermissionIdentity.RawIdentity;
            properties.ReturnObjectType = ReturnObjectTypes.PartialForList;
            return(base.SetObject <UserMailboxFolderPermission, SetUserMailboxFolderPermission>("Set-MailboxFolderPermission", (Identity)mailboxFolderPermissionIdentity.MailboxFolderId.ToMailboxFolderIdParameter(), properties));
        }