DataObjectIdentifierResolver.ContractIdentifier 方法

缩小一个数据对象中的标识符与指定的类型和完整标识符。

命名空间:  Microsoft.VisualStudio.Data.Framework
程序集:  Microsoft.VisualStudio.Data.Framework(在 Microsoft.VisualStudio.Data.Framework.dll 中)

语法

声明
Public Overridable Function ContractIdentifier ( _
    typeName As String, _
    fullIdentifier As Object() _
) As Object()
public virtual Object[] ContractIdentifier(
    string typeName,
    Object[] fullIdentifier
)
public:
virtual array<Object^>^ ContractIdentifier(
    String^ typeName, 
    array<Object^>^ fullIdentifier
)
abstract ContractIdentifier : 
        typeName:string * 
        fullIdentifier:Object[] -> Object[] 
override ContractIdentifier : 
        typeName:string * 
        fullIdentifier:Object[] -> Object[] 
public function ContractIdentifier(
    typeName : String, 
    fullIdentifier : Object[]
) : Object[]

参数

  • typeName
    类型:System.String
    数据对象的类型的名称。
  • fullIdentifier
    类型:array<System.Object[]
    数据对象的完整标识符。

返回值

类型:array<System.Object[]
数据对象的部分,显示收缩的唯一标识符。

实现

IVsDataObjectIdentifierResolver.ContractIdentifier(String, array<Object[])

备注

重写此方法将完整的标识符为唯一仍标识对象的最小可能的标识符。例如,在SQL Server数据库,那么,当用户dbo连接到pubs数据库时,完整的标识符 pubs.dbo.authors 可以收缩到的简单窗体 authors。

对继承者的说明

该派生类应重写此方法。基实现不执行任何操作并返回非限定 fullIdentifier 的参数。

.NET Framework 安全性

请参见

参考

DataObjectIdentifierResolver 类

Microsoft.VisualStudio.Data.Framework 命名空间