Description
Searches for a an element with a given name. Returns false if the specified element does not exist.
Syntax
| [Visual Basic .NET] |
|---|
Public Function Contains( _
ByVal Name As String _
) As Boolean
|
| [C#] |
|---|
public bool Contains(
string Name
);
|
| [Managed C++] |
|---|
public: bool Contains(
String __gc ^ Name
);
|
| [Unmanaged C++] |
|---|
public: HRESULT Contains(
BSTR Name,
VARIANT_BOOL * pRetVal
);
|
| [Java] |
|---|
public bool contains(
String Name
);
|
[Python - STK API ] |
|---|
def Contains(self, Name:str) -> bool:
|
Parameters
See Also
Example
Check whether a condition with specified name already exists.
| [C#] |
|---|
//Check if a condition with the specified name already exists.
if (provider.Conditions.Contains("ConditionName"))
{
Console.WriteLine("The condition \"{0}\" already exists!", "ConditionName");
}
|
|
Check whether a condition with specified name already exists.
| [Visual Basic .NET] |
|---|
'Check if a condition with the specified name already exists.
If provider.Conditions.Contains("ConditionName") Then
Console.WriteLine("The condition ""{0}"" already exists!", "ConditionName")
End If
|
|