MarkdownMediaHost Class
Creates the sites of MarkdownMediaLinkOptions.Hosts.
public static class MarkdownMediaHostMethods
| Name | Description |
|---|---|
| Create(string, Func<Uri, string?>, bool, string?) | Creates a site from its host, which also matches its subdomains, and the function that gives the URL of the <iframe> of a link, or null. |
Create(string, Func<Uri, string?>, bool, string?)
MarkdownMediaHost.csCreates a site from its host, which also matches its subdomains, and the function that gives the URL of the <iframe> of a link, or null.
public static IMarkdownMediaHost Create(string host, Func<Uri, string?> handler, bool allowFullScreen = true, string? iframeClass = null)Parameters
hoststringhandlerFunc<Uri, string?>allowFullScreenbooliframeClassstring?
Returns
Exceptions
ArgumentExceptionhostis empty.ArgumentNullExceptionhostorhandlerisnull.