Contains Method (Type)
Returns true if the item collection contains an item of the given type.
Namespace: Microsoft.Data.Tools.Design.Core.Context
Assembly: Microsoft.Data.Tools.Design.Core (in Microsoft.Data.Tools.Design.Core.dll)
Syntax
'Declaration
Public MustOverride Function Contains ( _
itemType As Type _
) As Boolean
'Usage
Dim instance As ContextItemCollection
Dim itemType As Type
Dim returnValue As Boolean
returnValue = instance.Contains(itemType)
public abstract bool Contains(
Type itemType
)
public:
virtual bool Contains(
Type^ itemType
) abstract
abstract Contains :
itemType:Type -> bool
public abstract function Contains(
itemType : Type
) : boolean
Parameters
- itemType
Type: System..::..Type
The type of item to check.
Return Value
Type: System..::..Boolean
True if the context contains an instance of this item type.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | if itemType is null. |