FileAssociation/ProgramAssociationInfo.cs
/// <summary>
/// Gets a value that determines if the file's extension will always be displayed.
/// </summary>
/// <returns>Value that specifies if the file's extension is always displayed.</returns>
Gets a value that determines if the file's extension will always be displayed.
Gets a value that determines if the file ' s extension will always be displayed .
protected bool GetAlwaysShowExt()
      {
         if (!this.Exists)
            throw new Exception("Extension does not exist");
         RegistryKey root = RegistryWrapper.ClassesRoot;
         RegistryKey key = root.OpenSubKey(this.progId);
         object o = key.GetValue("AlwaysShowExt", "ThisValueShouldNotExist");
         if (o.ToString() == "ThisValueShouldNotExist")
         {
            return false;
         }
         return true;
      }
protected bool GetAlwaysShowExt ( ) { if ( ! this . Exists ) throw new Exception ( " " ) ; RegistryKey root = RegistryWrapper . ClassesRoot ; RegistryKey key = root . OpenSubKey ( this . progId ) ; object o = key . GetValue ( " " , " " ) ; if ( o . ToString ( ) == " " ) { return false ; } return true ; }
Gets a value that determines if the file's extension will always be displayed.
Gets a value that determines if the file ' s extension will always be displayed .
Value that specifies if the file's extension is always displayed.
Value that specifies if the file ' s extension is always displayed .