Group.GetTermSetsWithCustomProperty method (String, String)

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 _
) As TermSetCollection
'Usage
Dim instance As Group
Dim customPropertyName As String
Dim customPropertyValue As String
Dim returnValue As TermSetCollection

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

Parameters

  • customPropertyName
    Type: System.String

    The name of the custom property.

  • customPropertyValue
    Type: System.String

    The value of the custom 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