共用方式為


UrnCollection.Contains 方法

Specifies whether 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
True if a URN collection contains a URN; otherwise, false.

實作

ICollection<T>.Contains(T)

範例

使用集合

請參閱

參考

UrnCollection 類別

Microsoft.SqlServer.Management.Smo 命名空間