Property | Type | Description |
---|
Method | Description | |
---|---|---|
Create ( string progId ) : |
Creates actual extension association key in registry for the specified extension and supplied attributes.
|
|
Create ( string progId, PerceivedTypes perceivedType ) : FileAssociationInfo |
Creates actual extension association key in registry for the specified extension and supplied attributes.
|
|
Create ( string progId, PerceivedTypes perceivedType, string contentType ) : FileAssociationInfo |
Creates actual extension association key in registry for the specified extension and supplied attributes.
|
|
Create ( string progId, PerceivedTypes perceivedType, string contentType, string openwithList ) : FileAssociationInfo |
Creates actual extension association key in registry for the specified extension and supplied attributes.
|
|
Create ( ) : void |
Creates the extension key.
|
|
Delete ( ) : void |
Deletes the extension key.
|
|
FileAssociationInfo ( string extension ) : System |
Initializes a new instance of the FileAssociationInfoFileAssociationInfo class, which acts as a wrapper for a file extension within the registry.
|
|
GetExtensions ( ) : string[] |
Gets array containing known file extensions from HKEY_CLASSES_ROOT.
|
|
IsValid ( string extension, string progId ) : bool |
Verifies that given extension exists and is associated with given program id
|
Method | Description | |
---|---|---|
Create ( FileAssociationInfo file ) : void |
Creates actual file extension entry in registry.
|
|
Delete ( FileAssociationInfo file ) : void |
Deletes actual file extension entry in registry.
|
|
GetContentType ( FileAssociationInfo file ) : string |
Gets a value that determines the MIME type of the file.
|
|
GetOpenWithList ( FileAssociationInfo file ) : string[] |
Gets array of containing program file names which should be displayed in the Open With List.
|
|
GetPerceivedType ( FileAssociationInfo file ) : PerceivedTypes |
Gets or value that determines the PerceivedTypePerceivedType of the file.
|
|
GetPersistentHandler ( FileAssociationInfo file ) : Guid |
Gets a value that indicates the filter component that is used to search for text within documents of this type.
|
|
GetProgID ( FileAssociationInfo file ) : string |
Gets a value that indicates the name of the associated application with the behavior to handle this extension.
|
|
SetContentType ( FileAssociationInfo file, string type ) : void |
Sets a value that determines the MIME type of the file.
|
|
SetOpenWithList ( FileAssociationInfo file, string programList ) : void |
Sets array of containing program file names which should be displayed in the Open With List.
|
|
SetPerceivedType ( FileAssociationInfo file, PerceivedTypes type ) : void |
Sets a value that determines the PerceivedTypePerceivedType of the file.
|
|
SetPersistentHandler ( FileAssociationInfo file, Guid persistentHandler ) : void |
Sets a value that indicates the filter component that is used to search for text within documents of this type.
|
|
SetProgID ( FileAssociationInfo file, string progId ) : void |
Set a value that indicates the name of the associated application with the behavior to handle this extension.
|
public Create ( string progId ) : |
||
progId | string | Name of expected handling program. |
return |
public Create ( string progId, PerceivedTypes perceivedType ) : FileAssociationInfo | ||
progId | string | Name of expected handling program. |
perceivedType | PerceivedTypes | |
return | FileAssociationInfo |
public Create ( string progId, PerceivedTypes perceivedType, string contentType ) : FileAssociationInfo | ||
progId | string | Name of expected handling program. |
perceivedType | PerceivedTypes | |
contentType | string | MIME type of file type. |
return | FileAssociationInfo |
public Create ( string progId, PerceivedTypes perceivedType, string contentType, string openwithList ) : FileAssociationInfo | ||
progId | string | Name of expected handling program. |
perceivedType | PerceivedTypes | |
contentType | string | MIME type of file type. |
openwithList | string | |
return | FileAssociationInfo |
protected Create ( FileAssociationInfo file ) : void | ||
file | FileAssociationInfo | |
return | void |
protected Delete ( FileAssociationInfo file ) : void | ||
file | FileAssociationInfo | |
return | void |
public FileAssociationInfo ( string extension ) : System | ||
extension | string | The dot prefixed extension. |
return | System |
protected GetContentType ( FileAssociationInfo file ) : string | ||
file | FileAssociationInfo | |
return | string |
protected GetOpenWithList ( FileAssociationInfo file ) : string[] | ||
file | FileAssociationInfo | |
return | string[] |
protected GetPerceivedType ( FileAssociationInfo file ) : PerceivedTypes | ||
file | FileAssociationInfo | |
return | PerceivedTypes |
protected GetPersistentHandler ( FileAssociationInfo file ) : Guid | ||
file | FileAssociationInfo | |
return | Guid |
protected GetProgID ( FileAssociationInfo file ) : string | ||
file | FileAssociationInfo | |
return | string |
public IsValid ( string extension, string progId ) : bool | ||
extension | string | Extension to be checked for. |
progId | string | progId to be checked for. |
return | bool |
protected SetContentType ( FileAssociationInfo file, string type ) : void | ||
file | FileAssociationInfo | |
type | string | MIME content type of extension. |
return | void |
protected SetOpenWithList ( FileAssociationInfo file, string programList ) : void | ||
file | FileAssociationInfo | |
programList | string | Program file names |
return | void |
protected SetPerceivedType ( FileAssociationInfo file, PerceivedTypes type ) : void | ||
file | FileAssociationInfo | |
type | PerceivedTypes | |
return | void |
protected SetPersistentHandler ( FileAssociationInfo file, Guid persistentHandler ) : void | ||
file | FileAssociationInfo | |
persistentHandler | Guid | Guid of filter component. |
return | void |
protected SetProgID ( FileAssociationInfo file, string progId ) : void | ||
file | FileAssociationInfo | |
progId | string | Associated Program ID of handling program. |
return | void |