TermStore.GetTermSetsWithCustomProperty method (String, String, StringMatchOption)

SharePoint 2013

Searches TermSet objects that have a custom property with the provided name and the provided value in a TermStore.

Namespace:  Microsoft.SharePoint.Taxonomy
Assembly:  Microsoft.SharePoint.Taxonomy (in Microsoft.SharePoint.Taxonomy.dll)

public TermSetCollection GetTermSetsWithCustomProperty(
	string customPropertyName,
	string customPropertyValue,
	StringMatchOption stringMatchOption


Type: System.String

The name of the property.

Type: System.String

The value of the property. If the value is null, the method only searches for the property name.

Type: Microsoft.SharePoint.Taxonomy.StringMatchOption

The string matching options for the property value.

Return value

Type: Microsoft.SharePoint.Taxonomy.TermSetCollection
A collection of TermSet objects.

The search results are returned directly from the TermStore. The TermStore may not be in sync with changes that have been made but not yet committed.