共用方式為


VersionControlServer.AuthorizedUser 屬性

取得授權使用指定之伺服器上的使用者。

命名空間:  Microsoft.TeamFoundation.VersionControl.Client
組件:  Microsoft.TeamFoundation.VersionControl.Client (在 Microsoft.TeamFoundation.VersionControl.Client.dll 中)

語法

'宣告
Public ReadOnly Property AuthorizedUser As String
public string AuthorizedUser { get; }

屬性值

型別:System.String
使用的使用者名稱以存取指定的儲存機制。

備註

如果使用者名稱指定為命令列參數、環境變數等等,則會傳回。 如果使用預設認證,請驗證使用者認證以伺服器取得使用者的識別。

.NET Framework 安全性

請參閱

參考

VersionControlServer 類別

Microsoft.TeamFoundation.VersionControl.Client 命名空間