Share via


DbProviderServices.ExpandDataDirectory(String) Method

Definition

Expands |DataDirectory| in the given path if it begins with |DataDirectory| and returns the expanded path, or returns the given string if it does not start with |DataDirectory|.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1820:TestForEmptyStringsUsingStringLength")]
public static string ExpandDataDirectory (string path);
static member ExpandDataDirectory : string -> string
Public Shared Function ExpandDataDirectory (path As String) As String

Parameters

path
String

The path to expand.

Returns

The expanded path.

Attributes

Applies to