public Rename ( string oldName, string newName ) : void | ||
oldName | string | The old name of the playlist. |
newName | string | The new name of the playlist. |
return | void |
public void Rename(string oldName, string newName)
{
if (oldName == null)
throw new ArgumentNullException("oldName");
if (newName == null)
throw new ArgumentNullException("newName");
MpdResponse response = this.getConnection().Exec("rename", new string[] { oldName, newName });
if (response.IsError)
throw new MpdResponseException(response.ErrorCode, response.ErrorMessage);
}