ContainsKey Method
See Also 
SourceCode.Workflow.Design.Common.Extensions Namespace > ServiceElementsExtensions Class : ContainsKey Method



collection
The collection.
key
The key.

Glossary Item Box

Determines whether the specified collection contains key.

Syntax

Visual Basic (Declaration) 
<ExtensionAttribute()>
Public Shared Function ContainsKey( _
   ByVal collection As SourceCode.SmartObjects.Client.ServiceElementCollection, _
   ByVal key As String _
) As Boolean
Visual Basic (Usage)Copy Code
Dim collection As SourceCode.SmartObjects.Client.ServiceElementCollection
Dim key As String
Dim value As Boolean
 
value = ServiceElementsExtensions.ContainsKey(collection, key)
C# 
[Extension()]
public static bool ContainsKey( 
   SourceCode.SmartObjects.Client.ServiceElementCollection collection,
   string key
)
C++/CLI 
[Extension()]
public:
static bool ContainsKey( 
   SourceCode.SmartObjects.Client.ServiceElementCollection^ collection,
   String^ key
) 

Parameters

collection
The collection.
key
The key.

Return Value

true if the specified collection contains key; otherwise, false.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also