FCFL.NET Common Library - API Reference
ParseFcEnvFile Method

The relative or absolute file system path to the text file which contains FCFL(COM) FC.ENV-style contents.
Provided for legacy compatibility support, this method will parse an FC.ENV-style configuration file from the specified file path.
Syntax
'Declaration
 
Public Shared Function ParseFcEnvFile( _
   ByVal filePath As String _
) As NameValueCollection
public static NameValueCollection ParseFcEnvFile( 
   string filePath
)

Parameters

filePath
The relative or absolute file system path to the text file which contains FCFL(COM) FC.ENV-style contents.

Return Value

NameValueCollection of values read from the file.
Exceptions
ExceptionDescription
FCInvalidConfigurationExceptionThe file cannot be accessed (see InnerException) or the file contains syntax errors.
Remarks
If you wish to use an FC.ENV-style file to configure your application, you can use this file to produce a set of configuration values. If you wish to then pass them to LoadEnvironmentSettings, you must first construct the connection string and assign the value with the key ConfigValues.CONNECT_STRING. To produce a provider-specific connection string from a set of values (db_type, db_server, db_name, etc), use the CreateConnectionString method on the current provider: DbProviderFactory.Provider.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Reference

FCConfiguration Class
FCConfiguration Members

 

 


© 2010 Dovetail Software, Inc. - All rights reserved.
- Clarify, Amdocs, and related products and names are copyright and trademark of Amdocs, Inc.
- .NET, Visual Studio.NET, C#, Visual Basic and related products are trademark of Microsoft corporation.

Send comments on this topic.