Partager via


Méthode PropertyCollection.ISfcPropertySet.Contains (String)

Determines whether the property collection contains the property specified by the propertyName parameter.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Private Function Contains ( _
    propertyName As String _
) As Boolean Implements ISfcPropertySet.Contains
'Utilisation
Dim instance As PropertyCollection 
Dim propertyName As String 
Dim returnValue As Boolean 

returnValue = CType(instance, ISfcPropertySet).Contains(propertyName)
bool ISfcPropertySet.Contains(
    string propertyName
)
private:
virtual bool Contains(
    String^ propertyName
) sealed = ISfcPropertySet::Contains
private abstract Contains : 
        propertyName:string -> bool  
private override Contains : 
        propertyName:string -> bool
JScript prend en charge l'utilisation d'implémentations d'interface explicites, mais pas la déclaration de nouvelles implémentations d'interface.

Paramètres

  • propertyName
    Type : System.String
    A string value that specifies the name of the property.

Valeur de retour

Type : System.Boolean
A Boolean value, True if the collection contains the property, otherwise False.

Implémente

ISfcPropertySet.Contains(String)

Voir aussi

Référence

PropertyCollection Classe

Surcharge Contains

Espace de noms Microsoft.SqlServer.Management.Smo