SALES: 1-800-867-1380

Delete Method (Object, String, String, Int64)

Deletes an existing entry from the configuration store.

Namespace:  Microsoft.ApplicationServer.Caching
Assembly:  Microsoft.ApplicationServer.Caching.Core (in Microsoft.ApplicationServer.Caching.Core.dll)

Function Delete ( _
	transactionContext As Object, _
	type As String, _
	key As String, _
	oldVersion As Long _
) As Boolean
Dim instance As ICustomProvider
Dim transactionContext As Object
Dim type As String
Dim key As String
Dim oldVersion As Long
Dim returnValue As Boolean

returnValue = instance.Delete(transactionContext, _
	type, key, oldVersion)


Type: System..::..Object
The transaction context object associated with this entry.
Type: System..::..String
The type of entry to be enumerated.
Type: System..::..String
The key of the entry.
Type: System..::..Int64
The version of the entry. If this value is less than or equal to 0, the deletion occurs regardless of the version. If this value is greater than 0, then the deletion is only performed if the version of the entry matches the version provided.

Return Value

Type: System..::..Boolean
Returns Boolean. If the deletion succeeds, the return value is true. If the entry does not exist or if the version does not match, the return value is false.

Any unexpected errors should throw a ConfigStoreException exception.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft