FileAssociation/ProgramAssociationInfo.cs
/// <summary>
/// Gets a value that determines numerous shell options for extension as well as limitations on how extension properties can be edited by programs that honor <see cref="EditFlags"/>
/// </summary>
/// <returns><see cref="EditFlags"/> for program file type.</returns>
Gets a value that determines numerous shell options for extension as well as limitations on how extension properties can be edited by programs that honor
Gets a value that determines numerous shell options for extension as well as limitations on how extension properties can be edited by programs that honor
protected EditFlags GetEditFlags()
      {
         if (!this.Exists)
            throw new Exception("Extension does not exist");
         object val = registryWrapper.Read(this.progId, "EditFlags");
         if (val == null)
         {
            return EditFlags.None;
         }
         if (val is byte[])
         {
            int num;
            if (TryGetInt(val as byte[], out num))
            {
               val = num;
            }
            else
            {
               return EditFlags.None;
            }
         }
         try
         {
            return (EditFlags)Convert.ToUInt32(val);
         }
         catch (Exception ex)
         {
            Console.WriteLine(ex.ToString());
         }
         return EditFlags.None;
      }
protected EditFlags GetEditFlags ( ) { if ( ! this . Exists ) throw new Exception ( " " ) ; object val = registryWrapper . Read ( this . progId , " " ) ; if ( val == null ) { return EditFlags . None ; } if ( val is byte [ ] ) { int num ; if ( TryGetInt ( val as byte [ ] , out num ) ) { val = num ; } else { return EditFlags . None ; } } try { return ( EditFlags ) Convert . ToUInt32 ( val ) ; } catch ( Exception ex ) { Console . WriteLine ( ex . ToString ( ) ) ; } return EditFlags . None ; }
Gets a value that determines numerous shell options for extension as well as limitations on how extension properties can be edited by programs that honor
Gets a value that determines numerous shell options for extension as well as limitations on how extension properties can be edited by programs that honor
for program file type.
for program file type .