Skip to main content
A newer version of this page is available. .

IDataDirectoryPatchingService.PatchPath(String) Method

Translates a path specified in the connection string to an actual data source file path.

Namespace: DevExpress.Data.Utils

Assembly: DevExpress.Data.v18.2.dll

Declaration

string PatchPath(
    string path
)

Parameters

Name Type Description
path String

A String value, specifying a path to translate.

Returns

Type Description
String

A String value that is the actual file path.

Remarks

Built-in method implementation replaces the substitution string |DataDirectory| with the AppDomain’s DataDirectory value; if the DataDirectory is not defined, the DXDataDirectory value is used. The fallback value is the AppDomain.CurrentDomain.BaseDirectory property.

Tip

Call the AppDomain.SetData method to set the DataDirectory or DXDataDirectory values..

See Also