AGI STK Objects 11 Send comments on this topic.
GetDataPrvInfoFromPath Method (IAgDataProviderCollection)
See Also  Example
DataProviderPath





Description

returns the data provider information specified by the data provider path.

Syntax

[Visual Basic .NET]
Public Function GetDataPrvInfoFromPath( _
   ByVal DataProviderPath As String _
) As IAgDataProviderInfo

[C#]
public IAgDataProviderInfo GetDataPrvInfoFromPath(
string DataProviderPath
);

[Managed C++]
public: IAgDataProviderInfo^ GetDataPrvInfoFromPath(
String __gc ^ DataProviderPath
);

[Java]
public IAgDataProviderInfo getDataPrvInfoFromPath(
String DataProviderPath
);

[Unmanaged C++]
public: HRESULT GetDataPrvInfoFromPath(
BSTR DataProviderPath,
IAgDataProviderInfo ** ReturnValue
);

Parameters

DataProviderPath

Example

Coarse grain approach to retrieving data provider information
[C#] Copy Code
// The path separator is // 
IAgDataProviderInfo dp = facility.DataProviders.GetDataPrvInfoFromPath("Lighting Times//Sunlight"); 
string dpiName              = dp.Name; 
AgEDataProviderType dpiType = dp.Type
bool isGroup                = dp.IsGroup(); 
 

Coarse grain approach to retrieving data provider information
[Visual Basic .NET] Copy Code
' The path separator is //
Dim dp As IAgDataProviderInfo = facility.DataProviders.GetDataPrvInfoFromPath("Lighting Times//Sunlight")
Dim dpiName As String = dp.Name
Dim dpiType As AgEDataProviderType = dp.Type
Dim isGroup As Boolean = dp.IsGroup()

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1