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,则路径否则有效,错误。

.NET Framework 安全性

请参见

参考

BuildPath 类

Microsoft.TeamFoundation.Build.Common 命名空间