2using System.Threading.Tasks;
20 private string contentType;
33 [
Page(2,
"Script", 100)]
35 [ToolTip(78,
"URL to media.")]
42 if (!Uri.TryCreate(value, UriKind.Absolute, out Uri
_))
43 throw new NotSupportedException(
"Invalid URL.");
52 [
Page(2,
"Script", 100)]
53 [Header(63,
"Content-Type:")]
54 [ToolTip(79,
"Content-Type of media.")]
58 get => this.contentType;
61 if (!
string.IsNullOrEmpty(value) && (
65 throw new NotSupportedException(
"Content-Type not supported.");
68 this.contentType = value;
75 [
Page(2,
"Script", 100)]
76 [Header(80,
"Width:")]
77 [ToolTip(81,
"Width of media.")]
78 public ushort?
Width {
get;
set; }
83 [
Page(2,
"Script", 100)]
84 [Header(82,
"Height:")]
85 [ToolTip(83,
"Height of media.")]
114 return Task.CompletedTask;
129 return Task.CompletedTask;
Static class managing encoding and decoding of internet content.
static string[] CanDecodeContentTypes
Internet content types that can be decoded.
static bool IsAccepted(string ContentType, params string[] AcceptedContentTypes)
Checks if a given content type is acceptable.
static string[] CanEncodeContentTypes
Internet content types that can be encoded.
Static class managing editable parameters in objects. Editable parameters are defined by using the at...
Class managing a page in a data form layout.
Contains information about a language.
Task< string > GetStringAsync(Type Type, int Id, string Default)
Gets the string value of a string ID. If no such string exists, a string is created with the default ...
Represents a parameter on a command.
string Label
Parameter label.
bool Required
If parameter is required.
string ParameterName
Parameter name.
string Page
Parameter page.