Share via


Group.GetTermSetsWithCustomProperty method (String, String, StringMatchOption)

Searches TermSet objects that have a custom property with the specified name and value in the Group object.

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

Syntax

'Declaration
Public Function GetTermSetsWithCustomProperty ( _
    customPropertyName As String, _
    customPropertyValue As String, _
    stringMatchOption As StringMatchOption _
) As TermSetCollection
'Usage
Dim instance As Group
Dim customPropertyName As String
Dim customPropertyValue As String
Dim stringMatchOption As StringMatchOption
Dim returnValue As TermSetCollection

returnValue = instance.GetTermSetsWithCustomProperty(customPropertyName, _
    customPropertyValue, stringMatchOption)
public TermSetCollection GetTermSetsWithCustomProperty(
    string customPropertyName,
    string customPropertyValue,
    StringMatchOption stringMatchOption
)

Parameters

  • customPropertyName
    Type: System.String

    The name of the custom property.

  • customPropertyValue
    Type: System.String

    The value of the customer property.

Return value

Type: Microsoft.SharePoint.Taxonomy.TermSetCollection
A collection of TermSet objects that match the values of the specified parameters.

Remarks

The search results are directly from term store. It may not be in sync with whatever changes that has been made but not committed. For better results, call CommitAll() or RollBackAll() before you call this method.

See also

Reference

Group class

Group members

GetTermSetsWithCustomProperty overload

Microsoft.SharePoint.Taxonomy namespace