Delen via


IVsDataObjectStore.InvalidateObjects Method (String, array<Object )

Invalidates the data objects corresponding to the specified type and restrictions, forcing the data objects to be selected from the data source for future requests, as opposed to retrieving them from the object store cache.

Namespace:  Microsoft.VisualStudio.Data.Services
Assembly:  Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)

Syntax

'Declaration
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[]
)

Parameters

  • typeName
    Type: System.String

    The data source–specific name of the type to invalidate.

  • restrictions
    Type: array<System.Object[]

    An array containing the restrictions associated with the specified type to invalidate.

Exceptions

Exception Condition
ArgumentNullException

The typeName parameter is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

IVsDataObjectStore Interface

InvalidateObjects Overload

Microsoft.VisualStudio.Data.Services Namespace