/// <summary> /// Sets a value that determines the <see cref="PerceivedType" />PerceivedType of the file. /// </summary> /// <param name="file"><see cref="FileAssociationInfo" /> that provides specifics of the extension to be changed.</param> /// <param name="type"><see cref="PerceivedTypes" /> to be set that specifies Perceived Type of extension.</param> protected void SetPerceivedType(FileAssociationInfo file, PerceivedTypes type) { if (!file.Exists) { throw new Exception("Extension does not exist"); } _registryWrapper.Write(file._extension, "PerceivedType", type.ToString()); ShellNotification.NotifyOfChange(); }
/// <summary> /// Sets a value that determines the <see cref="PerceivedType"/>PerceivedType of the file. /// </summary> /// <param name="file"><see cref="FileAssociationInfo"/> that provides specifics of the extension to be changed.</param> /// <param name="type"><see cref="PerceivedTypes"/> to be set that specifies Perceived Type of extension.</param> protected void SetPerceivedType(FileAssociationInfo file, PerceivedTypes type) { if (!file.Exists) throw new Exception("Extension does not exist"); registryWrapper.Write(file.extension, "PerceivedType", type.ToString()); ShellNotification.NotifyOfChange(); }