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.v20.1.dll

Declaration

string PatchPath(
    string path
)
Function PatchPath(
    path As String
) As String

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