FileExtensionInfo Class

Defines the system information of a file extension.

Definition

Namespace: DevCase.Core.IO.FileSystem
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[SerializableAttribute]
[XmlRootAttribute("FileExtensionInfo")]
public sealed class FileExtensionInfo
Inheritance
Object    FileExtensionInfo

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

Constructors

FileExtensionInfo Initializes a new instance of the FileExtensionInfo class.

Properties

Command Gets a command string associated with a Shell verb.
ContentType Gets a general type of MIME file association, such as 'image' and 'bmp', so that applications can make general assumptions about a specific file type.
DdeApplication Gets the application name in a DDE broadcast.
DdeCommand Gets a template for DDE commands.
DdeIfExec Gets the DDE command to use to create a process.
DdeTopic Gets the topic name in a DDE broadcast.
DefaultIcon Gets the path to the icon resources to use by default for this association.

Positive numbers indicate an index into the dll's resource table, while negative numbers indicate a resource ID.

An example of the syntax for the resource is "C:\myfolder\myfile.dll,-1".

DelegateExecute For a verb invoked through COM and the IExecuteCommand interface, you can use this flag to retrieve the IExecuteCommand object's CLSID.

This CLSID is registered in the verb's command subkey as the DelegateExecute entry.

The verb is specified in the pwszExtra parameter in the call to IQueryAssociations::GetString.

DropTarget For a verb invoked through COM and the IDropTarget interface, you can use this flag to retrieve the IDropTarget object's CLSID.

This CLSID is registered in the DropTarget subkey. The verb is specified in the pwszExtra parameter in the call to IQueryAssociations::GetString.

Executable Gets an executable from a Shell verb command string.

For example, this string is found as the (Default) value for a subkey such as HKEY_CLASSES_ROOT\ApplicationName\shell\Open\command.

FriendlyAppName Gets the friendly name of an executable file.
FriendlyDocName Gets the friendly name of a document type.
InfoTip Corresponds to the InfoTip registry value.

Gets an info tip for an item, or list of properties in the form of an IPropertyDescriptionList from which to create an info tip, such as when hovering the cursor over a file name.

The list of properties can be parsed with PSGetPropertyDescriptionListFromString.

Name Gets the file extension name.
NoOpen Gets a value indicating whether the association ignores the information associated with the 'open' subkey command.
QuickTip Corresponds to the QuickTip registry value. Same as InfoTip, except that it always returns a list of property names in the form of an IPropertyDescriptionList.

The difference between this value and InfoTip is that this returns properties that are safe for any scenario that causes slow property retrieval, such as offline or slow networks.

Some of the properties returned from InfoTip might not be appropriate for slow property retrieval scenarios.

The list of properties can be parsed with PSGetPropertyDescriptionListFromString.

ShellExtension For an object that has a Shell extension associated with it, you can use this to retrieve the CLSID of that Shell extension object.
ShellNewValue Look under the ShellNew subkey.
SupportedUriProtocols (Introduced in Windows 8)

There is no official documentation for this member.

TileInfo Corresponds to the TileInfo registry value.

Contains a list of properties to be displayed for a particular file type in a Windows Explorer window that is in tile view.

This is the same as InfoTip, but, like QuickTip, it also returns a list of property names in the form of an IPropertyDescriptionList.

The list of properties can be parsed with PSGetPropertyDescriptionListFromString

Methods

Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetType Gets the Type of the current instance.
(Inherited from Object)
ToString Returns a string that represents the current object.
(Inherited from Object)

Extension Methods

CanConvertTo Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
CanConvertToT Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
ConvertToT Converts an object to the specified target type.

If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions)

ConvertToT Converts an object to the specified target type.

If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions)

IsDisposable Determines whether the specified object is a disposable type (i.e., it implements IDisposable interface).
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
ThrowIfNullTException Throws the specified exception if the source object is null.
(Defined by ObjectExtensions)

See Also