Artemis.DAL.ProfileProvider.ExportProfile C# (CSharp) Méthode

ExportProfile() public static méthode

Exports the given profile to the provided path in XML
public static ExportProfile ( ProfileModel prof, string path ) : void
prof Artemis.Profiles.ProfileModel The profile to export
path string The path to save the profile to
Résultat void
        public static void ExportProfile(ProfileModel prof, string path)
        {
            var json = JsonConvert.SerializeObject(prof);
            File.WriteAllText(path, json);
        }