XmlText.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)

适用于