XmlCharacterData.Substring(Int32, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從指定範圍內擷取完整字串的子字串。
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
要取回的字元數。
傳回
對應於指定範圍的子字串。