无效数据对象使用指定的类型和限制对应,强制数据对象从数据源中选择用于以后的请求,用于检索它们相对于从对象存储缓存。
命名空间: Microsoft.VisualStudio.Data.Services
程序集: Microsoft.VisualStudio.Data.Services(在 Microsoft.VisualStudio.Data.Services.dll 中)
语法
声明
Sub InvalidateObjects ( _
typeName As String, _
restrictions As Object() _
)
void InvalidateObjects(
string typeName,
Object[] restrictions
)
void InvalidateObjects(
String^ typeName,
array<Object^>^ restrictions
)
abstract InvalidateObjects :
typeName:string *
restrictions:Object[] -> unit
function InvalidateObjects(
typeName : String,
restrictions : Object[]
)
参数
- typeName
类型:System.String
无效类型的数据源特定名称。
- restrictions
类型:array<System.Object[]
包含限制的数组与指定的类型无效。
异常
异常 | 条件 |
---|---|
ArgumentNullException | typeName 参数为 nullnull 引用(在 Visual Basic 中为 Nothing)。 |
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。