如果可以将express收缩的标识符的算法。
命名空间: Microsoft.VisualStudio.Data
程序集: Microsoft.VisualStudio.Data(在 Microsoft.VisualStudio.Data.dll 中)
语法
声明
Protected Overridable Function QuickContractIdentifier ( _
typeName As String, _
fullIdentifier As Object() _
) As Object()
protected virtual Object[] QuickContractIdentifier(
string typeName,
Object[] fullIdentifier
)
protected:
virtual array<Object^>^ QuickContractIdentifier(
String^ typeName,
array<Object^>^ fullIdentifier
)
abstract QuickContractIdentifier :
typeName:string *
fullIdentifier:Object[] -> Object[]
override QuickContractIdentifier :
typeName:string *
fullIdentifier:Object[] -> Object[]
protected function QuickContractIdentifier(
typeName : String,
fullIdentifier : Object[]
) : Object[]
参数
- typeName
类型:System.String
数据对象的类型的名称。
- fullIdentifier
类型:array<System.Object[]
数据对象的完整标识符。
返回值
类型:array<System.Object[]
如果快速缩小该标识符,无法的返回被收缩的标识符或返回 nullnull 引用(在 Visual Basic 中为 Nothing)。
异常
异常 | 条件 |
---|---|
ArgumentNullException | typeName 参数为 null。 |
备注
此方法的如果可能用途是尝试缩小实际上瞬间的标识符。例如,此方法不会通过某些昂贵执行调用可能需要秒执行的数据源。
ContractIdentifier 方案的基实现首先调用此方法以确定是否都有快速缩小该标识符,然后执行 SlowContractIdentifier 方法,才会认为快速缩小是不可能的。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
请参见
参考
DataObjectIdentifierResolver 类
Microsoft.VisualStudio.Data 命名空间
QuickContractIdentifier