ServerException.ExtractServerItem 方法

分析 SqlError 消息并提取键标识的字段。 字段将服务器路径。

命名空间:  Microsoft.TeamFoundation.VersionControl.Server
程序集:  Microsoft.TeamFoundation.VersionControl.Server(在 Microsoft.TeamFoundation.VersionControl.Server.dll 中)

语法

声明
Protected Shared Function ExtractServerItem ( _
    error As SqlError, _
    key As String _
) As String
protected static string ExtractServerItem(
    SqlError error,
    string key
)

参数

返回值

类型:System.String
服务器路径或空字符串

备注

搜索该模式 %key=value% 和返回值。

.NET Framework 安全性

请参阅

参考

ServerException 类

Microsoft.TeamFoundation.VersionControl.Server 命名空间