VersionControlPath.GetFullPath 方法 (String, Boolean)

規範化所指定的項目規格並傳回字串。 這會讓等項目移除。「s,轉換\對/,依此類推。 它會擲回 InvalidPathException,如果項目是空字串,包含無效的字元包括內嵌錢幣符號 (萬用字元不會被視為不適用於這個檢查),或太長。

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

語法

'宣告
Public Shared Function GetFullPath ( _
    item As String, _
    checkReservedCharacters As Boolean _
) As String
public static string GetFullPath(
    string item,
    bool checkReservedCharacters
)

參數

  • checkReservedCharacters
    類型:System.Boolean
    布林值旗標是否驗證版本控制保留字元。

傳回值

類型:System.String
項目的標準字串格式。

.NET Framework 安全性

請參閱

參考

VersionControlPath 類別

GetFullPath 多載

Microsoft.TeamFoundation.VersionControl.Common 命名空間