XmlComment Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents an XML comment.
public ref class XmlComment sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class XmlComment final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class XmlComment
Public NotInheritable Class XmlComment
- Inheritance
- Attributes
- Implements
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Properties
Attributes |
Gets the list of attributes of this node. |
ChildNodes |
Gets a list of children in the current node. This method always returns NULL. |
Data |
Gets or sets the node data depending on the node type. |
FirstChild |
Gets the first child node. This property always returns NULL. |
InnerText |
Gets the text from inside the XML. |
LastChild |
Gets the last child node. This property always returns NULL. |
Length |
Gets the length of the data in Unicode characters. |
LocalName |
Gets the local name, which is the local part of a qualified name. This is called the local part in Namespaces in XML. |
NamespaceUri |
Returns the Uniform Resource Identifier (URI) for the namespace. |
NextSibling |
Gets the next sibling of the node in the parent's child list. |
NodeName |
Returns the qualified name for attribute, document type, element, entity, or notation nodes. Returns a fixed string for all other node types. |
NodeType |
Gets the XML Document Object Model (DOM) node type, which determines valid values and whether the node can have child nodes. |
NodeValue |
Gets or sets the text associated with the node. |
OwnerDocument |
Returns the root of the document that contains the node. |
ParentNode |
Gets the parent node of the node instance. |
Prefix |
Gets or sets the namespace prefix. |
PreviousSibling |
Gets the previous sibling of the node in the parent's child list. |
Methods
AppendChild(IXmlNode) |
Appends a new child node as the last child of the node. This method is not applicable to this class and it will throw an exception. |
AppendData(String) |
Appends the supplied string to the existing string data. |
CloneNode(Boolean) |
Clones a new node. |
DeleteData(UInt32, UInt32) |
Deletes the specified data. |
GetXml() |
Returns the XML representation of the node and all its descendants. |
HasChildNodes() |
Determines whether a node has children. |
InsertBefore(IXmlNode, IXmlNode) |
Inserts a child node to the left of the specified node, or at the end of the list. This method is not applicable to this class and will throw an exception. |
InsertData(UInt32, String) |
Inserts a string at the specified offset. |
Normalize() |
Normalizes all descendant elements by combining two or more adjacent text nodes into one unified text node. |
RemoveChild(IXmlNode) |
Removes the specified child node from the list of children and returns it. This method is not applicable to this class and will throw an exception. |
ReplaceChild(IXmlNode, IXmlNode) |
Replaces the specified old child node with the supplied new child node. This method is not applicable to this class and will throw an exception. |
ReplaceData(UInt32, UInt32, String) |
Replaces the specified number of characters with the supplied string. |
SelectNodes(String) |
Applies the specified pattern-matching operation to this node's context and returns the list of matching nodes as an XmlNodeList. This method is not applicable to this class and will throw an exception. |
SelectNodesNS(String, Object) |
Applies the specified pattern-matching operation to this node's context and returns the list of matching nodes as an XmlNodeList. This method is not applicable to this class and will throw an exception. |
SelectSingleNode(String) |
Applies the specified pattern-matching operation to this node's context and returns the first matching node. This method is not applicable to this class and will throw an exception. |
SelectSingleNodeNS(String, Object) |
Applies the specified pattern-matching operation to this node's context and returns the first matching node. This method is not applicable to this class and will throw an exception. |
SubstringData(UInt32, UInt32) |
Retrieves a substring of the full string from the specified range. |