Share via


XmlCDataSection.SubstringData(UInt32, UInt32) 方法

定義

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

public:
 virtual Platform::String ^ SubstringData(unsigned int offset, unsigned int count) = SubstringData;
winrt::hstring SubstringData(uint32_t const& offset, uint32_t const& count);
public string SubstringData(uint offset, uint count);
function substringData(offset, count)
Public Function SubstringData (offset As UInteger, count As UInteger) As String

參數

offset
UInt32

unsigned int

uint32_t

指定字串開頭的位移,以字元為單位。 零的位移表示從資料開頭複製。

count
UInt32

unsigned int

uint32_t

指定要從指定位移擷取的字元數。

傳回

String

Platform::String

winrt::hstring

傳回的子字串。

實作

M:Windows.Data.Xml.Dom.IXmlCharacterData.SubstringData(System.UInt32,System.UInt32) M:Windows.Data.Xml.Dom.IXmlCharacterData.SubstringData(unsigned int,unsigned int) M:Windows.Data.Xml.Dom.IXmlCharacterData.SubstringData(uint32_t,uint32_t)

適用於