Contains 方法

Specifies if a URN collection contains a URN.

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

語法

'宣告
Public Function Contains ( _
    urn As Urn _
) As Boolean
'用途
Dim instance As UrnCollection
Dim urn As Urn
Dim returnValue As Boolean

returnValue = instance.Contains(urn)
public bool Contains(
    Urn urn
)
public:
virtual bool Contains(
    Urn^ urn
) sealed
abstract Contains : 
        urn:Urn -> bool 
override Contains : 
        urn:Urn -> bool 
public final function Contains(
    urn : Urn
) : boolean

傳回值

型別:System. . :: . .Boolean
Boolean

實作

ICollection< (Of < ( <'T> ) > ) >. . :: . .Contains(T)

範例

使用集合