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





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 a plane with specified name already exists.
[C#] Copy Code
// Check if the plane with the specified name already exists. 
if (provider.Planes.Contains("PlaneName")) 

    Console.WriteLine("The plane \"{0}\" already exists!""PlaneName"); 

 

Check whether a plane with specified name already exists.
[Visual Basic .NET] Copy Code
' Check if the plane with the specified name already exists.
If provider.Planes.Contains("PlaneName") Then
    Console.WriteLine("The plane ""{0}"" already exists!", "PlaneName")
End If

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1