[SerializableAttribute]
[XmlRootAttribute("FileType")]
public sealed class FileType
<SerializableAttribute>
<XmlRootAttribute("FileType")>
Public NotInheritable Class FileType
Dim instance As FileType
[SerializableAttribute]
[XmlRootAttribute(L"FileType")]
public ref class FileType sealed
[<SealedAttribute>]
[<SerializableAttribute>]
[<XmlRootAttribute("FileType")>]
type FileType = 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 signature As New FileSignature({26, 69, 223, 163}, offset:=0, description:="Matroska - Magic Number")
Dim filetype As New FileType(signature, "Matroska stream (generic)", "mkv", "video/x-matroska", "Matroska is an extensible opensource A/V container.")
Dim sb As New Global.System.Text.StringBuilder()
With sb
.AppendLine(String.Format("Name : {0}", filetype.Name))
.AppendLine(String.Format("Ext. : {0}", filetype.Extension))
.AppendLine(String.Format("MIME : {0}", filetype.Mime))
.AppendLine(String.Format("Desc.: {0}", filetype.Description))
For Each sig As FileSignature In filetype.Signatures
.AppendLine()
.AppendLine(String.Format("Signature Desc.: {0}", sig.Description))
.AppendLine(String.Format("Signature Hex. : {0}", sig.Hex))
.AppendLine(String.Format("Signature ASCII: {0}", sig.ASCII))
Next
End With
Console.WriteLine(sb.ToString())
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.
FileType(FileSignature, String, String) | Initializes a new instance of the FileType class. |
FileType(FileSignature, String, String) | Initializes a new instance of the FileType class. |
FileType(FileSignature, String, String, String) | Initializes a new instance of the FileType class. |
FileType(FileSignature, String, String, String) | Initializes a new instance of the FileType class. |
FileType(FileSignature, String, String, String, String) | Initializes a new instance of the FileType class. |
FileType(FileSignature, String, String, String, String) | Initializes a new instance of the FileType class. |
Description | Gets or sets the description for this filetype. |
Extension | Gets or sets the filetype extension (e.g: exe, jpg, zip). |
Mime | Gets or sets the MIME name that identifies the content type of the filetype. |
Name | Gets or sets the filetype name. |
Signatures | Gets or sets the filetype signatures. A signature is data used to identify or verify the format (content) of a file. |
Equals(FileType) | Determines whether the specified FileType is equal to this instance. |
Equals(Object) |
Determines whether the specified Object is equal to this instance.
(Overrides ObjectEquals(Object)) |
GetHashCode |
Returns a hash code for this instance.
(Overrides ObjectGetHashCode) |
GetType | Gets the Type of the current instance. (Inherited from Object) |
ToString |
Returns a String that represents this instance.
(Overrides ObjectToString) |
Equality(FileType, FileType) | Implements the operator = |
Inequality(FileType, FileType) | Implements the operator <> |
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) |