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 ) : |
Creates actual extension association key in registry for the specified extension and supplied attributes.
|
|
Create ( string progId, PerceivedTypes perceivedType, string contentType ) : |
Creates actual extension association key in registry for the specified extension and supplied attributes.
|
|
Create ( string progId, PerceivedTypes perceivedType, string contentType, string openwithList ) : |
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 ( |
Creates actual file extension entry in registry.
|
|
Delete ( |
Deletes actual file extension entry in registry.
|
|
GetContentType ( |
Gets a value that determines the MIME type of the file.
|
|
GetOpenWithList ( |
Gets array of containing program file names which should be displayed in the Open With List.
|
|
GetPerceivedType ( |
Gets or value that determines the PerceivedTypePerceivedType of the file.
|
|
GetPersistentHandler ( |
Gets a value that indicates the filter component that is used to search for text within documents of this type.
|
|
GetProgID ( |
Gets a value that indicates the name of the associated application with the behavior to handle this extension.
|
|
SetContentType ( |
Sets a value that determines the MIME type of the file.
|
|
SetOpenWithList ( |
Sets array of containing program file names which should be displayed in the Open With List.
|
|
SetPerceivedType ( |
Sets a value that determines the PerceivedTypePerceivedType of the file.
|
|
SetPersistentHandler ( |
Sets a value that indicates the filter component that is used to search for text within documents of this type.
|
|
SetProgID ( |
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 ) : |
||
progId | string | Name of expected handling program. |
perceivedType | PerceivedTypes | |
return |
public Create ( string progId, PerceivedTypes perceivedType, string contentType ) : |
||
progId | string | Name of expected handling program. |
perceivedType | PerceivedTypes | |
contentType | string | MIME type of file type. |
return |
public Create ( string progId, PerceivedTypes perceivedType, string contentType, string openwithList ) : |
||
progId | string | Name of expected handling program. |
perceivedType | PerceivedTypes | |
contentType | string | MIME type of file type. |
openwithList | string | |
return |
protected Create ( |
||
file | ||
return | void |
protected Delete ( |
||
file | ||
return | void |
public FileAssociationInfo ( string extension ) : System | ||
extension | string | The dot prefixed extension. |
return | System |
protected GetContentType ( |
||
file | ||
return | string |
protected GetOpenWithList ( |
||
file | ||
return | string[] |
protected GetPerceivedType ( |
||
file | ||
return | PerceivedTypes |
protected GetPersistentHandler ( |
||
file | ||
return | System.Guid |
protected GetProgID ( |
||
file | ||
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 ( |
||
file | ||
type | string | MIME content type of extension. |
return | void |
protected SetOpenWithList ( |
||
file | ||
programList | string | Program file names |
return | void |
protected SetPerceivedType ( |
||
file | ||
type | PerceivedTypes | |
return | void |
protected SetPersistentHandler ( |
||
file | ||
persistentHandler | System.Guid | Guid of filter component. |
return | void |
protected SetProgID ( |
||
file | ||
progId | string | Associated Program ID of handling program. |
return | void |