PathHelper.GetSecretsPathFromSecretsId(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳儲存使用者秘密的 JSON 檔案路徑。
public:
static System::String ^ GetSecretsPathFromSecretsId(System::String ^ userSecretsId);
public static string GetSecretsPathFromSecretsId(string userSecretsId);
static member GetSecretsPathFromSecretsId : string -> string
Public Shared Function GetSecretsPathFromSecretsId (userSecretsId As String) As String
參數
- userSecretsId
- String
使用者的秘密 ID。
傳回
通往秘密檔案的完整路徑。
備註
此方法利用目前的使用者設定檔,將 secrets 檔案定位在磁碟上非原始碼控制的位置。