프로퍼티 | 타입 | 설명 |
---|
메소드 | 설명 | |
---|---|---|
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
|
메소드 | 설명 | |
---|---|---|
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. |
리턴 |
public Create ( string progId, PerceivedTypes perceivedType ) : FileAssociationInfo | ||
progId | string | Name of expected handling program. |
perceivedType | PerceivedTypes | |
리턴 | 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. |
리턴 | 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 | |
리턴 | FileAssociationInfo |
protected Create ( FileAssociationInfo file ) : void | ||
file | FileAssociationInfo | |
리턴 | void |
protected Delete ( FileAssociationInfo file ) : void | ||
file | FileAssociationInfo | |
리턴 | void |
public FileAssociationInfo ( string extension ) : System | ||
extension | string | The dot prefixed extension. |
리턴 | System |
protected GetContentType ( FileAssociationInfo file ) : string | ||
file | FileAssociationInfo | |
리턴 | string |
protected GetOpenWithList ( FileAssociationInfo file ) : string[] | ||
file | FileAssociationInfo | |
리턴 | string[] |
protected GetPerceivedType ( FileAssociationInfo file ) : PerceivedTypes | ||
file | FileAssociationInfo | |
리턴 | PerceivedTypes |
protected GetPersistentHandler ( FileAssociationInfo file ) : Guid | ||
file | FileAssociationInfo | |
리턴 | Guid |
protected GetProgID ( FileAssociationInfo file ) : string | ||
file | FileAssociationInfo | |
리턴 | string |
public IsValid ( string extension, string progId ) : bool | ||
extension | string | Extension to be checked for. |
progId | string | progId to be checked for. |
리턴 | bool |
protected SetContentType ( FileAssociationInfo file, string type ) : void | ||
file | FileAssociationInfo | |
type | string | MIME content type of extension. |
리턴 | void |
protected SetOpenWithList ( FileAssociationInfo file, string programList ) : void | ||
file | FileAssociationInfo | |
programList | string | Program file names |
리턴 | void |
protected SetPerceivedType ( FileAssociationInfo file, PerceivedTypes type ) : void | ||
file | FileAssociationInfo | |
type | PerceivedTypes | |
리턴 | void |
protected SetPersistentHandler ( FileAssociationInfo file, Guid persistentHandler ) : void | ||
file | FileAssociationInfo | |
persistentHandler | Guid | Guid of filter component. |
리턴 | void |
protected SetProgID ( FileAssociationInfo file, string progId ) : void | ||
file | FileAssociationInfo | |
progId | string | Associated Program ID of handling program. |
리턴 | void |