[SerializableAttribute]
[XmlRootAttribute("FileExtensionInfo")]
public sealed class FileExtensionInfo
<SerializableAttribute>
<XmlRootAttribute("FileExtensionInfo")>
Public NotInheritable Class FileExtensionInfo
Dim instance As FileExtensionInfo
[SerializableAttribute]
[XmlRootAttribute(L"FileExtensionInfo")]
public ref class FileExtensionInfo sealed
[<SealedAttribute>]
[<SerializableAttribute>]
[<XmlRootAttribute("FileExtensionInfo")>]
type FileExtensionInfo = class end
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
Dim feInfo As FileExtensionInfo = GetFileExtensionInfo(".wav")
Dim sb As New Global.System.Text.StringBuilder
With sb
.AppendLine(String.Format("Extension Name: {0}", feInfo.Name))
.AppendLine(String.Format("Friendly Doc Name: {0}", feInfo.FriendlyDocName))
.AppendLine(String.Format("Content Type: {0}", feInfo.ContentType))
.AppendLine(String.Format("Default Icon: {0}", feInfo.DefaultIcon))
.AppendLine("-----------------------------------------------------------")
.AppendLine(String.Format("Friendly App Name: {0}", feInfo.FriendlyAppName))
.AppendLine(String.Format("Executable: {0}", feInfo.Executable))
.AppendLine(String.Format("Command: {0}", feInfo.Command))
.AppendLine("-----------------------------------------------------------")
.AppendLine(String.Format("Drop Target: {0}", feInfo.DropTarget))
.AppendLine(String.Format("Info Tip: {0}", feInfo.InfoTip))
.AppendLine(String.Format("No Open: {0}", feInfo.NoOpen))
.AppendLine(String.Format("Shell Extension: {0}", feInfo.ShellExtension))
.AppendLine(String.Format("Shell New Value: {0}", feInfo.ShellNewValue))
.AppendLine("-----------------------------------------------------------")
.AppendLine(String.Format("Supported URI Protocols: {0}", feInfo.SupportedUriProtocols))
.AppendLine(String.Format("DDE Application: {0}", feInfo.DdeApplication))
.AppendLine(String.Format("DDE Command: {0}", feInfo.DdeCommand))
.AppendLine(String.Format("DDE If Exec: {0}", feInfo.DdeIfExec))
.AppendLine(String.Format("DDE Topic: {0}", feInfo.DdeTopic))
End With
MessageBox.Show(sb.ToString(), "", MessageBoxButtons.OK, MessageBoxIcon.Information)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
FileExtensionInfo | Initializes a new instance of the FileExtensionInfo class. |
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 |
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) |
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) |