共用方式為


GlobalObjectCollection.Contains Method

Determines whether this collection contains the given item.

Namespace:  Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

'宣告
Public Function Contains ( _
    item As GlobalObject _
) As Boolean
'用途
Dim instance As GlobalObjectCollection
Dim item As GlobalObject
Dim returnValue As Boolean

returnValue = instance.Contains(item)
public bool Contains(
    GlobalObject item
)
public:
bool Contains(
    GlobalObject^ item
)
member Contains : 
        item:GlobalObject -> bool 
public function Contains(
    item : GlobalObject
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the collection contains the object, otherwise false.

.NET Framework Security

See Also

Reference

GlobalObjectCollection Class

GlobalObjectCollection Members

Microsoft.VisualStudio.Shell.Design Namespace