FileAssociation/ProgramAssociationInfo.cs
/// <summary>
/// Sets a value that determines if the file's extension will always be shown.
/// </summary>
/// <param name="value">Value that specifies if the file's extension should be always displayed.</param>
Sets a value that determines if the file's extension will always be shown.
Sets a value that determines if the file ' s extension will always be shown .
protected void SetAlwaysShowExt(bool value)
      {
         if (!this.Exists)
            throw new Exception("Extension does not exist");
         if (value)
         {
            registryWrapper.Write(this.progId, "AlwaysShowExt", string.Empty);
         }
         else
         {
            registryWrapper.Delete(this.progId, "AlwaysShowExt");
         }
         ShellNotification.NotifyOfChange();
      }
protected void SetAlwaysShowExt ( bool value ) { if ( ! this . Exists ) throw new Exception ( " " ) ; if ( value ) { registryWrapper . Write ( this . progId , " " , string . Empty ) ; } else { registryWrapper . Delete ( this . progId , " " ) ; } ShellNotification . NotifyOfChange ( ) ; }
Sets a value that determines if the file's extension will always be shown.
Sets a value that determines if the file ' s extension will always be shown .
value
bool
Value that specifies if the file's extension should be always displayed.
Value that specifies if the file ' s extension should be always displayed .