locked
StorageFile.Properties.SavePropertiesAsync()

    Question

  • Hello,

    I m trying to change the Title, Album , Artist properties of an audio/music .mp3 file.

    Here is what i did and it says in the exception "The parameter is incorrect."

    IEnumerable<KeyValuePair<string, object>> AudioProperties = new KeyValuePair<string, object>[]
    {
        new KeyValuePair<string, object>("Title", "Lalala")
    };
    await myFile.Properties.SavePropertiesAsync(AudioProperties);

    I 'm really trying to read the Documentation and the References but I still cant understand what I have to do to change the file properties.


    Friday, June 6, 2014 8:18 PM

Answers

  • musicProperties.Title = "A really fantastic song title";
    await musicProperties.SavePropertiesAsync();

    Saturday, June 7, 2014 7:49 PM
    Owner

All replies