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
)
参数
- path
类型:System.String%
应验证的路径。
- allowWildcards
类型:System.Boolean
是否应允许通配符。
- error
类型:System.String%
如果有,错误导致方法失败。
返回值
类型:System.Boolean
True,则路径否则有效,错误。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。