Share via


XmlDocument.CreateComment(String) Method

Definition

Creates a comment node that contains the supplied data.

public:
 virtual XmlComment ^ CreateComment(Platform::String ^ data) = CreateComment;
XmlComment CreateComment(winrt::hstring const& data);
public XmlComment CreateComment(string data);
function createComment(data)
Public Function CreateComment (data As String) As XmlComment

Parameters

data
String

Platform::String

winrt::hstring

The value to be supplied to the new comment object's NodeValue.

Returns

The newly created comment node.

Applies to