TermStore.GetTermSetsWithCustomProperty Method

Definition

Overloads

GetTermSetsWithCustomProperty(String)

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

GetTermSetsWithCustomProperty(String, String)

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

GetTermSetsWithCustomProperty(String, String, StringMatchOption)

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

GetTermSetsWithCustomProperty(String, String, StringMatchOption, Int32)

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

GetTermSetsWithCustomProperty(String)

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

public:
 Microsoft::SharePoint::Taxonomy::TermSetCollection ^ GetTermSetsWithCustomProperty(System::String ^ customPropertyName);
public Microsoft.SharePoint.Taxonomy.TermSetCollection GetTermSetsWithCustomProperty (string customPropertyName);
member this.GetTermSetsWithCustomProperty : string -> Microsoft.SharePoint.Taxonomy.TermSetCollection
Public Function GetTermSetsWithCustomProperty (customPropertyName As String) As TermSetCollection

Parameters

customPropertyName
String

The name of the custom property.

Returns

TermSetCollection

A collection of TermSet objects.

Remarks

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.

Applies to

GetTermSetsWithCustomProperty(String, String)

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

public:
 Microsoft::SharePoint::Taxonomy::TermSetCollection ^ GetTermSetsWithCustomProperty(System::String ^ customPropertyName, System::String ^ customPropertyValue);
public Microsoft.SharePoint.Taxonomy.TermSetCollection GetTermSetsWithCustomProperty (string customPropertyName, string customPropertyValue);
member this.GetTermSetsWithCustomProperty : string * string -> Microsoft.SharePoint.Taxonomy.TermSetCollection
Public Function GetTermSetsWithCustomProperty (customPropertyName As String, customPropertyValue As String) As TermSetCollection

Parameters

customPropertyName
String

The name of the property.

customPropertyValue
String

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

Returns

TermSetCollection

A collection of TermSet objects.

Remarks

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.

Applies to

GetTermSetsWithCustomProperty(String, String, StringMatchOption)

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

public:
 Microsoft::SharePoint::Taxonomy::TermSetCollection ^ GetTermSetsWithCustomProperty(System::String ^ customPropertyName, System::String ^ customPropertyValue, Microsoft::SharePoint::Taxonomy::StringMatchOption stringMatchOption);
public Microsoft.SharePoint.Taxonomy.TermSetCollection GetTermSetsWithCustomProperty (string customPropertyName, string customPropertyValue, Microsoft.SharePoint.Taxonomy.StringMatchOption stringMatchOption);
member this.GetTermSetsWithCustomProperty : string * string * Microsoft.SharePoint.Taxonomy.StringMatchOption -> Microsoft.SharePoint.Taxonomy.TermSetCollection

Parameters

customPropertyName
String

The name of the property.

customPropertyValue
String

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

stringMatchOption
StringMatchOption

The string matching options for the property value.

Returns

TermSetCollection

A collection of TermSet objects.

Remarks

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.

Applies to

GetTermSetsWithCustomProperty(String, String, StringMatchOption, Int32)

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

public:
 Microsoft::SharePoint::Taxonomy::TermSetCollection ^ GetTermSetsWithCustomProperty(System::String ^ customPropertyName, System::String ^ customPropertyValue, Microsoft::SharePoint::Taxonomy::StringMatchOption stringMatchOption, int resultCollectionSize);
public Microsoft.SharePoint.Taxonomy.TermSetCollection GetTermSetsWithCustomProperty (string customPropertyName, string customPropertyValue, Microsoft.SharePoint.Taxonomy.StringMatchOption stringMatchOption, int resultCollectionSize);
member this.GetTermSetsWithCustomProperty : string * string * Microsoft.SharePoint.Taxonomy.StringMatchOption * int -> Microsoft.SharePoint.Taxonomy.TermSetCollection

Parameters

customPropertyName
String

The name of the property.

customPropertyValue
String

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

stringMatchOption
StringMatchOption

The string matching options for the property value.

resultCollectionSize
Int32

The maximum number of TermSet objects in the returned collection.

Returns

TermSetCollection

A collection of TermSet objects.

Remarks

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.

Applies to