XmlCharacterData.Substring(Int32, Int32) 方法

定義

從指定的範圍擷取完整字串中的一個子字串。

public:
 virtual System::String ^ Substring(int offset, int count);
public virtual string Substring (int offset, int count);
abstract member Substring : int * int -> string
override this.Substring : int * int -> string
Public Overridable Function Substring (offset As Integer, count As Integer) As String

參數

offset
Int32

字串中要開始擷取的位置。 零位移指示起點就在資料的開頭。

count
Int32

要擷取的字元數。

傳回

String

對應至指定範圍的子字串。

適用於