HtmlAudioElement Class
https://html.spec.whatwg.org/multipage/media.html#htmlaudioelement
public sealed class HtmlAudioElement : HtmlMediaElement- Inheritance
HtmlMediaElementHtmlAudioElement
Methods
| Name | Description |
|---|---|
| Create(Document, string?) | Creates an audio element whose preload attribute is "auto" (https://html.spec.whatwg.org/multipage/media.html#dom-audio). |
Create(Document, string?)
EmbeddedContent.csCreates an audio element whose preload attribute is "auto" (https://html.spec.whatwg.org/multipage/media.html#dom-audio).
public static HtmlAudioElement Create(Document document, string? src = null)Parameters
documentDocument- The document of the element (the associated document of the current global object).
srcstring?- The value of the src attribute, or null.
Returns
HtmlAudioElement The new element.