Partager via


TermStore.GetTermSetsWithCustomProperty - Méthode (String, String, StringMatchOption, Int32)

Objets de TermSet de recherches qui ont une propriété personnalisée avec le nom fourni et la valeur fournie dans une TermStore.

Espace de noms :  Microsoft.SharePoint.Taxonomy
Assembly :  Microsoft.SharePoint.Taxonomy (dans Microsoft.SharePoint.Taxonomy.dll)

Syntaxe

'Déclaration
Public Function GetTermSetsWithCustomProperty ( _
    customPropertyName As String, _
    customPropertyValue As String, _
    stringMatchOption As StringMatchOption, _
    resultCollectionSize As Integer _
) As TermSetCollection
'Utilisation
Dim instance As TermStore
Dim customPropertyName As String
Dim customPropertyValue As String
Dim stringMatchOption As StringMatchOption
Dim resultCollectionSize As Integer
Dim returnValue As TermSetCollection

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

Paramètres

  • customPropertyName
    Type : System.String

    Nom de la propriété.

  • customPropertyValue
    Type : System.String

    La valeur de la propriété. Si la valeur est null, la méthode recherche uniquement le nom de propriété.

  • resultCollectionSize
    Type : System.Int32

    Le nombre maximal d'objets TermSet dans la collection retournée.

Valeur renvoyée

Type : Microsoft.SharePoint.Taxonomy.TermSetCollection
Collection d'objets TermSet .

Remarques

Les résultats de la recherche sont renvoyés directement à partir de la TermStore. Le TermStore ne peut pas être synchronisé avec les modifications qui ont été effectuées, mais pas encore validées.

Voir aussi

Référence

TermStore classe

TermStore - Membres

GetTermSetsWithCustomProperty - Surcharge

Microsoft.SharePoint.Taxonomy - Espace de noms