共用方式為


Contains 方法

Determines whether the specified partition number is present in the collection.

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

語法

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

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

參數

傳回值

型別:System. . :: . .Boolean
A Boolean value that specifies whether the specified partition number is present in the collection of physical partitions.
If True, the collection contains the partition with the specified number. Otherwise, False.