This documentation is archived and is not being maintained.

XmlCharacterData.Substring Method

Retrieves a substring, of the full string, from the specified range.

[Visual Basic]
Public Overridable Function Substring( _
   ByVal offset As Integer, _
   ByVal count As Integer _
) As String
[C#]
public virtual string Substring(
 int offset,
 int count
);
[C++]
public: virtual String* Substring(
 int offset,
 int count
);
[JScript]
public function Substring(
   offset : int,
 count : int
) : String;

Parameters

offset
The position within the string to start retrieving. An offset of zero indicates the starting point is at the start of the data.
count
The number of characters to retrieve.

Return Value

The substring corresponding to the specified range.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

XmlCharacterData Class | XmlCharacterData Members | System.Xml Namespace

Show: