XmlCharacterData.Length 属性

定义

获取数据的长度(以字符为单位)。Gets the length of the data, in characters.

public:
 virtual property int Length { int get(); };
public virtual int Length { get; }
member this.Length : int
Public Overridable ReadOnly Property Length As Integer

属性值

Int32

Data 属性中字符串的长度(以字符为单位)。The length, in characters, of the string in the Data property. 长度可能为零;也就是说 CharacterData 节点可能是空的。The length may be zero; that is, CharacterData nodes can be empty.

适用于