Class MediaType
Base container class for a mediatype definition.
A MediaType contains information about the type of media of a specific experience.
This includes how to display the media, but also how to load and upload it.
Inheritance
System.Object
MediaType
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Appearition.SDK.dll
[Serializable]
public class MediaType
Constructors
View Source
Declaration
View Source
Declaration
public MediaType(MediaType cc)
Parameters
Fields
View Source
Declaration
public string DataProviderName
Field Value
| Type |
Description |
| System.String |
|
View Source
Declaration
Field Value
| Type |
Description |
| System.String |
|
View Source
Declaration
public List<MediaType.FileValidation> FileValidations
Field Value
View Source
Declaration
Field Value
| Type |
Description |
| System.Boolean |
|
View Source
MaxTextChars
Declaration
Field Value
| Type |
Description |
| System.Int32 |
|
View Source
Declaration
public int MaxTransformTemplateChars
Field Value
| Type |
Description |
| System.Int32 |
|
View Source
Declaration
Field Value
| Type |
Description |
| System.Int32 |
|
View Source
Declaration
Field Value
| Type |
Description |
| System.String |
|
View Source
Declaration
public List<MediaType.OtherProperty> OtherProperties
Field Value
View Source
Declaration
public List<MediaType.PropertyDefault> PropertyDefaults
Field Value
View Source
Declaration
public bool ShowDisplayMode
Field Value
| Type |
Description |
| System.Boolean |
|
View Source
Declaration
public bool ShowFileUpload
Field Value
| Type |
Description |
| System.Boolean |
|
View Source
Declaration
Field Value
| Type |
Description |
| System.Boolean |
|
View Source
ShowMultiLineText
Declaration
public bool ShowMultiLineText
Field Value
| Type |
Description |
| System.Boolean |
|
View Source
Declaration
Field Value
| Type |
Description |
| System.Boolean |
|
View Source
ShowSingleLineText
Declaration
public bool ShowSingleLineText
Field Value
| Type |
Description |
| System.Boolean |
|
View Source
Declaration
Field Value
| Type |
Description |
| System.Boolean |
|
View Source
Declaration
Field Value
| Type |
Description |
| System.String |
|
Properties
View Source
Declaration
public virtual string DisplayName { get; }
Property Value
| Type |
Description |
| System.String |
|
Methods
View Source
Returns of all the extensions valid for this MediaType.
Declaration
public List<string> GetAllPossibleExtensions(bool removeExtensionDot = false)
Parameters
| Type |
Name |
Description |
| System.Boolean |
removeExtensionDot |
|
Returns
| Type |
Description |
| System.Collections.Generic.List<System.String> |
The all possible extensions.
|
View Source
Shortcut to fetch the max upload file size in bytes.
Declaration
public long GetMaxSizeInBytes()
Returns
| Type |
Description |
| System.Int64 |
|
View Source
Given an extension, returns the associated mime type.
Declaration
public string GetMimeTypeForGivenExtension(string extension)
Parameters
| Type |
Name |
Description |
| System.String |
extension |
Extension.
|
Returns
| Type |
Description |
| System.String |
The MIME type for given extension.
|
Extension Methods