UtilFileAssocGetFileExtensionInfo Method
Gets the system information of the specified file extension.
Namespace: DevCase.Core.IO.FileSystemAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
No code example is currently available or this language may not be supported.
- extensionName String
-
The extension name (eg: .txt).
FileExtensionInfo
A
FileExtensionInfo object that contains the file extension info.
This is a code example.
No code example is currently available or this language may not be supported.
Dim feInfo As FileExtensionInfo = FileAssoc.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.
ArgumentNullException
|
extensionName
|