MessageCollectionBase.Contains 方法 (Int32, String)

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

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public Function Contains ( _
    id As Integer, _
    language As String _
) As Boolean
用法
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

参数

返回值

类型: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.

示例

使用集合

请参阅

参考

MessageCollectionBase 类

Contains 重载

Microsoft.SqlServer.Management.Smo 命名空间