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

要取回的字元數。

傳回

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

適用於