ProcessingInstruction Class
https://dom.spec.whatwg.org/#interface-processinginstruction
public sealed class ProcessingInstruction : CharacterData- Inheritance
CharacterDataProcessingInstruction
Constructors
| Name | Description |
|---|---|
| ProcessingInstruction(string, string) | Creates a processing instruction with the given target and data. |
ProcessingInstruction(string, string)
ProcessingInstruction.csCreates a processing instruction with the given target and data.
Parameters
See also
Properties
| Name | Description |
|---|---|
| NodeName | Gets the target of the processing instruction. |
| NodeType | Gets the node type of a processing instruction. |
| Sheet | https://drafts.csswg.org/cssom/#dom-linkstyle-sheet |
| Target | Gets the target of the processing instruction. |
NodeName
ProcessingInstruction.csNodeType
ProcessingInstruction.csSheet
XmlStyleSheet.cshttps://drafts.csswg.org/cssom/#dom-linkstyle-sheet
public CssStyleSheet? Sheet { get; }Target
ProcessingInstruction.csGets the target of the processing instruction.
public string Target { get; }Methods
| Name | Description |
|---|---|
| GetAttribute(string) | https://dom.spec.whatwg.org/#get-a-processing-instruction-attribute |
| GetAttributeNames() | Returns the names of the pseudo-attributes of the data, in order. |
| HasAttribute(string) | Returns whether the data contains the pseudo-attribute. |
| HasAttributes() | Returns whether the data contains at least one pseudo-attribute. |
| RemoveAttribute(string) | Removes a pseudo-attribute and updates the data accordingly. |
| SetAttribute(string, string) | Sets a pseudo-attribute and updates the data accordingly. |
| ToggleAttribute(string, bool?) | Adds or removes a pseudo-attribute, optionally forced, and returns whether it is present afterwards. |
GetAttribute(string)
ProcessingInstruction.cshttps://dom.spec.whatwg.org/#get-a-processing-instruction-attribute
GetAttributeNames()
ProcessingInstruction.csReturns the names of the pseudo-attributes of the data, in order.
public IReadOnlyList<string> GetAttributeNames()HasAttribute(string)
ProcessingInstruction.csReturns whether the data contains the pseudo-attribute.
HasAttributes()
ProcessingInstruction.csReturns whether the data contains at least one pseudo-attribute.
public bool HasAttributes()RemoveAttribute(string)
ProcessingInstruction.csRemoves a pseudo-attribute and updates the data accordingly.