共用方式為


NumberedObjectCollectionBase.Contains 方法

Determines whether the specified value is the number value of any of the numbered objects in the referenced collection.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Function Contains ( _
    number As Short _
) As Boolean
'用途
Dim instance As NumberedObjectCollectionBase 
Dim number As Short 
Dim returnValue As Boolean 

returnValue = instance.Contains(number)
public bool Contains(
    short number
)
public:
bool Contains(
    short number
)
member Contains : 
        number:int16 -> bool
public function Contains(
    number : short
) : boolean

參數

  • number
    型別:System.Int16
    An Int16 value that specifies the number value of the object that is being checked to see whether it exists in the collection.

傳回值

型別:System.Boolean
A Boolean value that specifies whether the referenced collection contains the object with the specified number value.If True, the collection contains the specified object. Otherwise, False.

範例

使用集合

請參閱

參考

NumberedObjectCollectionBase 類別

Microsoft.SqlServer.Management.Smo 命名空間