WorkflowContext.CacheNoLongerMatches Method
Used to determine if a cached value is still valid and whether it has been updated in the database.
Namespace: Microsoft.SharePoint.WorkflowActions
Assembly: Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)
Syntax
'Declaration
Public Function CacheNoLongerMatches ( _
list As SPList, _
listItem As Integer, _
fieldname As String, _
value As Object _
) As Boolean
'Usage
Dim instance As WorkflowContext
Dim list As SPList
Dim listItem As Integer
Dim fieldname As String
Dim value As Object
Dim returnValue As Boolean
returnValue = instance.CacheNoLongerMatches(list, _
listItem, fieldname, value)
public bool CacheNoLongerMatches(
SPList list,
int listItem,
string fieldname,
Object value
)
Parameters
list
Type: Microsoft.SharePoint.SPListAn SPList object. Specifies the list that contains the cached field value to check.
listItem
Type: System.Int32The integer of the list item whose cached value will be checked.
fieldname
Type: System.StringA string that represents the field name of the cached field value that will be verified.
value
Type: System.ObjectThe value that is used to verify the cached field value.
Return Value
Type: System.Boolean
A value that indicates whether a specified cached field value still matches the field value contained in the database.