Group.GetTermSetsWithCustomProperty method (String)
Searches TermSet objects that have a custom property with the specified name 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 _
) As TermSetCollection
'Usage
Dim instance As Group
Dim customPropertyName As String
Dim returnValue As TermSetCollection
returnValue = instance.GetTermSetsWithCustomProperty(customPropertyName)
public TermSetCollection GetTermSetsWithCustomProperty(
string customPropertyName
)
Parameters
customPropertyName
Type: System.StringThe name of the custom property.
Return value
Type: Microsoft.SharePoint.Taxonomy.TermSetCollection
A collection of TermSet objects that match the value of the specified parameter.
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.