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
Assembly: Appearition.SDK.dll
[Serializable]
public class MediaType
Constructors
Declaration
Declaration
public MediaType(MediaType cc)
Parameters
Properties
Declaration
public virtual string DataProviderName { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public virtual string DisplayName { get; }
Property Value
Type |
Description |
System.String |
|
Declaration
public virtual string FileLabel { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public virtual List<MediaType.FileValidation> FileValidations { get; set; }
Property Value
Declaration
public virtual bool IsDataQuery { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
MaxTextChars
Declaration
public virtual int MaxTextChars { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
public virtual int MaxTransformTemplateChars { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
public virtual int MediaTypeId { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
public virtual string Name { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public virtual List<MediaType.OtherProperty> OtherProperties { get; set; }
Property Value
Declaration
public virtual List<MediaType.PropertyDefault> PropertyDefaults { get; set; }
Property Value
Declaration
public virtual bool ShowDisplayMode { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public virtual bool ShowFileUpload { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public virtual bool ShowLanguage { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
ShowMultiLineText
Declaration
public virtual bool ShowMultiLineText { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public virtual bool ShowPlatform { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
ShowSingleLineText
Declaration
public virtual bool ShowSingleLineText { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public virtual bool ShowUrl { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public virtual string UrlLabel { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
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.
|
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