public PlaylistAdd ( string name, string file ) : void | ||
name | string | The name of the playlist. |
file | string | The path and name of the file to add. |
Результат | void |
public void PlaylistAdd(string name, string file)
{
if (name == null)
throw new ArgumentNullException("name");
if (file == null)
throw new ArgumentNullException("file");
name = EscapeString(name);
file = EscapeString(file);
MpdResponse response = this.getConnection().Exec("playlistadd", new string[] { name, file });
if (response.IsError)
throw new MpdResponseException(response.ErrorCode, response.ErrorMessage);
}