PathHelper.GetSecretsPath Method

Definition

Overloads

GetSecretsPath(IFileProvider)
Obsolete.

This method is obsolete and will be removed in a future version. The recommended alternative is GetSecretsPathFromSecretsId(String).

Gets the path to the secrets file. If a directory is given, finds the user secrets id in the JSON named 'project.json'.

GetSecretsPath(String)
Obsolete.

This method is obsolete and will be removed in a future version. The recommended alternative is GetSecretsPathFromSecretsId(String).

Gets the path to the secrets file. If a directory is given, finds the user secrets id in the JSON named 'project.json'.

GetSecretsPath(IFileProvider)

Caution

This method is obsolete and will be removed in a future version. The recommended alternative is Microsoft.Extensions.Configuration.UserSecrets.PathHelper.GetSecretsPathFromSecretsId(string).

This method is obsolete and will be removed in a future version. The recommended alternative is GetSecretsPathFromSecretsId(String).

Gets the path to the secrets file. If a directory is given, finds the user secrets id in the JSON named 'project.json'.

public:
 static System::String ^ GetSecretsPath(Microsoft::Extensions::FileProviders::IFileProvider ^ provider);
public static string GetSecretsPath (Microsoft.Extensions.FileProviders.IFileProvider provider);
[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is Microsoft.Extensions.Configuration.UserSecrets.PathHelper.GetSecretsPathFromSecretsId(string).")]
public static string GetSecretsPath (Microsoft.Extensions.FileProviders.IFileProvider provider);
static member GetSecretsPath : Microsoft.Extensions.FileProviders.IFileProvider -> string
[<System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is Microsoft.Extensions.Configuration.UserSecrets.PathHelper.GetSecretsPathFromSecretsId(string).")>]
static member GetSecretsPath : Microsoft.Extensions.FileProviders.IFileProvider -> string
Public Shared Function GetSecretsPath (provider As IFileProvider) As String

Parameters

provider
IFileProvider

The file provider.

Returns

String

The filepath to secrets file.

Attributes

Applies to

GetSecretsPath(String)

Caution

This method is obsolete and will be removed in a future version. The recommended alternative is Microsoft.Extensions.Configuration.UserSecrets.PathHelper.GetSecretsPathFromSecretsId(string).

This method is obsolete and will be removed in a future version. The recommended alternative is GetSecretsPathFromSecretsId(String).

Gets the path to the secrets file. If a directory is given, finds the user secrets id in the JSON named 'project.json'.

public:
 static System::String ^ GetSecretsPath(System::String ^ projectPath);
public static string GetSecretsPath (string projectPath);
[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is Microsoft.Extensions.Configuration.UserSecrets.PathHelper.GetSecretsPathFromSecretsId(string).")]
public static string GetSecretsPath (string projectPath);
static member GetSecretsPath : string -> string
[<System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is Microsoft.Extensions.Configuration.UserSecrets.PathHelper.GetSecretsPathFromSecretsId(string).")>]
static member GetSecretsPath : string -> string
Public Shared Function GetSecretsPath (projectPath As String) As String

Parameters

projectPath
String

The project file.

Returns

String

The filepath to secrets file.

Attributes

Applies to