SemanticTextQuery.FindInProperty(String, String) 方法

定義

傳回來源字串的區段,此區段符合 SemanticTextQuery 物件的查詢屬性。

public:
 virtual IVectorView<TextSegment> ^ FindInProperty(Platform::String ^ propertyContent, Platform::String ^ propertyName) = FindInProperty;
IVectorView<TextSegment> FindInProperty(winrt::hstring const& propertyContent, winrt::hstring const& propertyName);
public IReadOnlyList<TextSegment> FindInProperty(string propertyContent, string propertyName);
function findInProperty(propertyContent, propertyName)
Public Function FindInProperty (propertyContent As String, propertyName As String) As IReadOnlyList(Of TextSegment)

參數

propertyContent
String

Platform::String

winrt::hstring

要查詢的來源字串。

propertyName
String

Platform::String

winrt::hstring

屬性的名稱。

傳回

代表查詢點擊的 TextSegment 結構的集合。

適用於

另請參閱