BuildPath.IsValidPath 方法

如果有效,驗證組建項目路徑並規範化它。 當路徑無效時,輸出值錯誤設定。

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

語法

'宣告
Public Shared Function IsValidPath ( _
    ByRef path As String, _
    allowWildcards As Boolean, _
    <OutAttribute> ByRef error As String _
) As Boolean
public static bool IsValidPath(
    ref string path,
    bool allowWildcards,
    out string error
)

參數

  • error
    類型:System.String%
    如果有的話,錯誤造成方法失敗。

傳回值

類型:System.Boolean
則為 true,如果路徑是有效的,否則為 false。

.NET Framework 安全性

請參閱

參考

BuildPath 類別

Microsoft.TeamFoundation.Build.Common 命名空間