語言

PathHelper.GetSecretsPathFromSecretsId(String) 方法

定義

回傳儲存使用者秘密的 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 檔案定位在磁碟上非原始碼控制的位置。

適用於