C# Class ZForge.Win32.FileAssociation.ProgramAssociationInfo

Provides instance of ProgramaticID that can be referenced by multiple different extensions.
Afficher le fichier Open project: zhuangyy/Motion Class Usage Examples

Protected Properties

Свойство Type Description
progId string

Méthodes publiques

Méthode Description
AddVerb ( ProgramVerb verb ) : void

Adds single ProgramVerb that define the verb supported by this ProgID.

Create ( ProgramVerb verb ) : ProgramAssociationInfo

Creates actual Programmatic Identifier key in registry that is used by other extensions.

Create ( string description, EditFlags editFlags, ProgramVerb verb ) : ProgramAssociationInfo

Creates actual Programmatic Identifier key in registry that is used by other extensions.

Create ( string description, ProgramVerb verb ) : ProgramAssociationInfo

Creates actual Programmatic Identifier key in registry that is used by other extensions.

Create ( ) : void

Creates program id within registry.

Delete ( ) : void

Deletes the current prog id.

ProgramAssociationInfo ( string progId ) : System

Initializes a new instance of the ProgramAssociationInfo class, which acts as a wrapper for a Programmatic Identifier within the registry.

RemoveVerb ( ProgramVerb verb ) : void

Removes single ProgramVerb that define the verb supported by this ProgID.

RemoveVerb ( string name ) : void

Removes single ProgramVerb that define the verb supported by this ProgID.

Méthodes protégées

Méthode Description
AddVerbInternal ( ProgramVerb verb ) : void

Adds single ProgramVerb that define the verb supported by this ProgID.

GetAlwaysShowExt ( ) : bool

Gets a value that determines if the file's extension will always be displayed.

GetDefaultIcon ( ) : ProgramIcon

GetDescription ( ) : string

Gets a value that determines what the friendly name of the file is.

GetEditFlags ( ) : EditFlags

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 EditFlags

GetVerbs ( ) : ZForge.Win32.FileAssociation.ProgramVerb[]

Gets an array of ProgramVerb that define the verbs supported by this ProgID.

RemoveVerbInternal ( string name ) : void

Removes single ProgramVerb that define the verb supported by this ProgID.

SetAlwaysShowExt ( bool value ) : void

Sets a value that determines if the file's extension will always be shown.

SetDefaultIcon ( ProgramIcon icon ) : void

SetDescription ( string description ) : void

Sets a value that determines what the friendly name of the file is.

SetEditFlags ( EditFlags flags ) : void

Sets a value that determines numerous shell options for extension as well as limitations on how extension properties can be edited by programs that honor EditFlags

SetVerbs ( ProgramVerb verbs ) : void

Sets an array of ProgramVerb that define the verbs supported by this ProgID

Private Methods

Méthode Description
TryGetInt ( byte arr, int &val ) : bool

Attempts to convert the value within the input byte array into an integer.

Method Details

AddVerb() public méthode

Adds single ProgramVerb that define the verb supported by this ProgID.
public AddVerb ( ProgramVerb verb ) : void
verb ProgramVerb Single that contains supported verb.
Résultat void

AddVerbInternal() protected méthode

Adds single ProgramVerb that define the verb supported by this ProgID.
protected AddVerbInternal ( ProgramVerb verb ) : void
verb ProgramVerb Single that contains supported verb.
Résultat void

Create() public méthode

Creates actual Programmatic Identifier key in registry that is used by other extensions.
public Create ( ProgramVerb verb ) : ProgramAssociationInfo
verb ProgramVerb Single that contains supported verb.
Résultat ProgramAssociationInfo

Create() public méthode

Creates actual Programmatic Identifier key in registry that is used by other extensions.
public Create ( string description, EditFlags editFlags, ProgramVerb verb ) : ProgramAssociationInfo
description string Friendly description of file type.
editFlags EditFlags for program file type.
verb ProgramVerb Single that contains supported verbs.
Résultat ProgramAssociationInfo

Create() public méthode

Creates actual Programmatic Identifier key in registry that is used by other extensions.
public Create ( string description, ProgramVerb verb ) : ProgramAssociationInfo
description string Friendly description of file type.
verb ProgramVerb Single that contains supported verbs.
Résultat ProgramAssociationInfo

Create() public méthode

Creates program id within registry.
public Create ( ) : void
Résultat void

Delete() public méthode

Deletes the current prog id.
public Delete ( ) : void
Résultat void

GetAlwaysShowExt() protected méthode

Gets a value that determines if the file's extension will always be displayed.
protected GetAlwaysShowExt ( ) : bool
Résultat bool

GetDefaultIcon() protected méthode

protected GetDefaultIcon ( ) : ProgramIcon
Résultat ProgramIcon

GetDescription() protected méthode

Gets a value that determines what the friendly name of the file is.
protected GetDescription ( ) : string
Résultat string

GetEditFlags() protected méthode

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 EditFlags
protected GetEditFlags ( ) : EditFlags
Résultat EditFlags

GetVerbs() protected méthode

Gets an array of ProgramVerb that define the verbs supported by this ProgID.
protected GetVerbs ( ) : ZForge.Win32.FileAssociation.ProgramVerb[]
Résultat ZForge.Win32.FileAssociation.ProgramVerb[]

ProgramAssociationInfo() public méthode

Initializes a new instance of the ProgramAssociationInfo class, which acts as a wrapper for a Programmatic Identifier within the registry.
public ProgramAssociationInfo ( string progId ) : System
progId string Name of program id to interface with.
Résultat System

RemoveVerb() public méthode

Removes single ProgramVerb that define the verb supported by this ProgID.
public RemoveVerb ( ProgramVerb verb ) : void
verb ProgramVerb Single that contains supported verb.
Résultat void

RemoveVerb() public méthode

Removes single ProgramVerb that define the verb supported by this ProgID.
public RemoveVerb ( string name ) : void
name string Name of verb to remove.
Résultat void

RemoveVerbInternal() protected méthode

Removes single ProgramVerb that define the verb supported by this ProgID.
protected RemoveVerbInternal ( string name ) : void
name string Name of verb to remove
Résultat void

SetAlwaysShowExt() protected méthode

Sets a value that determines if the file's extension will always be shown.
protected SetAlwaysShowExt ( bool value ) : void
value bool Value that specifies if the file's extension should be always displayed.
Résultat void

SetDefaultIcon() protected méthode

protected SetDefaultIcon ( ProgramIcon icon ) : void
icon ProgramIcon
Résultat void

SetDescription() protected méthode

Sets a value that determines what the friendly name of the file is.
protected SetDescription ( string description ) : void
description string Friendly description of file type.
Résultat void

SetEditFlags() protected méthode

Sets a value that determines numerous shell options for extension as well as limitations on how extension properties can be edited by programs that honor EditFlags
protected SetEditFlags ( EditFlags flags ) : void
flags EditFlags for program file type.
Résultat void

SetVerbs() protected méthode

Sets an array of ProgramVerb that define the verbs supported by this ProgID
protected SetVerbs ( ProgramVerb verbs ) : void
verbs ProgramVerb Array of that contains verbs to be set.
Résultat void

Property Details

progId protected_oe property

Actual name of Programmatic Identifier
protected string progId
Résultat string