Compartir a través de


MessageCollectionBase.Contains Método (Int32, String)

Determines whether an object with the specified ID value and language exists in the message collection object.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
Public Function Contains ( _
    id As Integer, _
    language As String _
) As Boolean
'Uso
Dim instance As MessageCollectionBase 
Dim id As Integer 
Dim language As String 
Dim returnValue As Boolean 

returnValue = instance.Contains(id, language)
public bool Contains(
    int id,
    string language
)
public:
bool Contains(
    int id, 
    String^ language
)
member Contains : 
        id:int * 
        language:string -> bool
public function Contains(
    id : int, 
    language : String
) : boolean

Parámetros

Valor devuelto

Tipo: System.Boolean
A Boolean value that specifies whether the object with the ID value and language exists in the MessageCollectionBase object.If True, the MessageCollectionBase contains the specified object.If False, the MessageCollectionBase does not contain the specified object.

Ejemplos

Usar colecciones

Vea también

Referencia

MessageCollectionBase Clase

Sobrecarga de Contains

Espacio de nombres Microsoft.SqlServer.Management.Smo