当实现由选件类、协定一个数据对象中的标识符与指定的类型和完整的标识符。
命名空间: Microsoft.VisualStudio.Data.Services.SupportEntities
程序集: Microsoft.VisualStudio.Data.Services(在 Microsoft.VisualStudio.Data.Services.dll 中)
语法
声明
Function ContractIdentifier ( _
typeName As String, _
fullIdentifier As Object() _
) As Object()
Object[] ContractIdentifier(
string typeName,
Object[] fullIdentifier
)
array<Object^>^ ContractIdentifier(
String^ typeName,
array<Object^>^ fullIdentifier
)
abstract ContractIdentifier :
typeName:string *
fullIdentifier:Object[] -> Object[]
function ContractIdentifier(
typeName : String,
fullIdentifier : Object[]
) : Object[]
参数
- typeName
类型:System.String
数据对象的类型的名称。
- fullIdentifier
类型:array<System.Object[]
数据对象的完整标识符。
返回值
类型:array<System.Object[]
数据对象的部分,显示收缩的唯一标识符。
备注
执行此方法将完整的标识符并将其转换为唯一仍标识对象的最短的标识符。例如,在SQL Server实例,那么,当用户连接为dbo到pubs数据库时,完整的标识符 pubs.dbo.authors 可以收缩到该简单窗体,authors。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。