XmlDocument.NodeValue 屬性

定義

取得或設定與節點相關聯的文字。

public:
 property Platform::Object ^ NodeValue { Platform::Object ^ get(); void set(Platform::Object ^ value); };
IInspectable NodeValue();

void NodeValue(IInspectable value);
public object NodeValue { get; set; }
var object = xmlDocument.nodeValue;
xmlDocument.nodeValue = object;
Public Property NodeValue As Object

屬性值

Object

Platform::Object

IInspectable

與節點相關聯的文字。

實作

備註

此值取決於 NodeType 屬性。 下表描述此相依性。

NodeTypeNodeValue
元素Null
屬性屬性的值
Text文位元組點的內容
CDATASectionCDATA 區段的內容
EntityReferenceNULL
實體NULL
ProcessingInstruction排除目標的整個內容
註解批註的內容
文件NULL
DocumentTypeNULL
DocumentFragmentNULL
表示法NULL

適用於