AGI STK VGT 11Send comments on this topic.
Contains Method (IAgCrdnEventIntervalListGroup)
See Also  Example
Name
An element to search for.
Windows






Windows & Linux

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
);
[Java]
public bool contains(
   String Name
);
[Unmanaged C++]
public: HRESULT Contains(
   BSTR Name,
   VARIANT_BOOL * ReturnValue
);

Parameters

Name
An element to search for.

Example

Check whether an event interval list with specified name already exists.
[C#]Copy Code
//Check if an event interval list with the specified name already exists. 
if (provider.EventIntervalLists.Contains("EventIntervalListName")) 

    Console.WriteLine("The event interval list \"{0}\" already exists!""EventIntervalListName"); 

 

Check whether an event interval list with specified name already exists.
[Visual Basic .NET]Copy Code
'Check if an event interval list with the specified name already exists.
If provider.EventIntervalLists.Contains("EventIntervalListName") Then
    Console.WriteLine("The event interval list ""{0}"" already exists!", "EventIntervalListName")
End If

See Also

© 2018 Analytical Graphics, Inc. All Rights Reserved.