ArcObjects Library Reference  (GeoDatabase)    

IWorkspaceFactory.ReadConnectionPropertiesFromFile Method

The connection properties from the specified file.

[Visual Basic 6.0]
Function ReadConnectionPropertiesFromFile(
    ByVal fileName As String _
) As IPropertySet
[Visual Basic .NET]
Public Function ReadConnectionPropertiesFromFile ( _
    ByVal fileName As String _
) As IPropertySet
[C#]
public IPropertySet ReadConnectionPropertiesFromFile (
    string fileName
);
[Java]
public IPropertySet readConnectionPropertiesFromFile (
    String fileName
)
throws
    IOException,
    AutomationException
[C++]
HRESULT ReadConnectionPropertiesFromFile(
  BSTR fileName,
  IPropertySet** ConnectionProperties
);
[C++]

Parameters

fileName [in]

  fileName is a parameter of type BSTR

ConnectionProperties [out, retval]

  ConnectionProperties is a parameter of type IPropertySet

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

The filename parameter represents the pathname of a file that contains the connection information to be placed into the IPropertySet variable.  When used with ArcSDE connection files, the pathname generally points to a binary file in the directory %USERPROFILE%\Application Data\ESRI\ArcCatalog.

See Also

IWorkspaceFactory Interface

Example

IWorkspaceFactory ReadConnectionPropertiesFromFile Example

 


Feedback Send feedback on this page