Condividi tramite


Metodo Contains (String)

Verifies whether the specified string exists in the collection.

Spazio dei nomi  Microsoft.SqlServer.Management.Dmf
Assembly:  Microsoft.SqlServer.Dmf (in Microsoft.SqlServer.Dmf.dll)

Sintassi

'Dichiarazione
Public Function Contains ( _
    name As String _
) As Boolean
'Utilizzo
Dim instance As PolicyCategoryCollection
Dim name As String
Dim returnValue As Boolean

returnValue = instance.Contains(name)
public bool Contains(
    string name
)
public:
bool Contains(
    String^ name
)
member Contains : 
        name:string -> bool 
public function Contains(
    name : String
) : boolean

Parametri

Valore restituito

Tipo: System. . :: . .Boolean
A Boolean which is true. if the specified string exists in the collection; otherwise false.

Osservazioni

Questo spazio dei nomi, classe o membro è supportato solo nella versione 2.0 di Microsoft .NET Framework.