PathHelper.GetSecretsPath Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
The filepath to secrets file.
- Attributes