Class MimeTypeResult
MIME type detection result.
Inheritance
System.Object
MimeTypeResult
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Terrasoft.Common
Assembly: Terrasoft.Common.dll
Syntax
public class MimeTypeResult
Constructors
MimeTypeResult(String, Exception)
Initializes a new instance of the Terrasoft.Core.MimeDetector.MimeResult class.
Declaration
public MimeTypeResult(string mimeType, Exception exception = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | mimeType | |
System.Exception | exception |
Properties
Error
Exception for MIME type detection.
Declaration
public Exception Error { get; }
Property Value
Type | Description |
---|---|
System.Exception |
HasError
Has error
Declaration
public bool HasError { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Type
The MIME type.
Declaration
public string Type { get; }
Property Value
Type | Description |
---|---|
System.String |