ICustomProvider.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)
Usage
'Usage
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)
Syntax
'Declaration
Function Delete ( _
transactionContext As Object, _
type As String, _
key As String, _
oldVersion As Long _
) As Boolean
bool Delete (
Object transactionContext,
string type,
string key,
long oldVersion
)
bool Delete (
Object^ transactionContext,
String^ type,
String^ key,
long long oldVersion
)
boolean Delete (
Object transactionContext,
String type,
String key,
long oldVersion
)
function Delete (
transactionContext : Object,
type : String,
key : String,
oldVersion : long
) : boolean
Parameters
- transactionContext
The transaction context object associated with this entry.
- type
The type of entry to be enumerated.
- key
The key of the entry.
- oldVersion
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
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
.
Remarks
Any unexpected errors should throw a ConfigStoreException exception.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Visual Studio 2010 and later, .NET Framework 4
Target Platforms
Windows 7; Windows Server 2008 R2; Windows Server 2008 Service Pack 2; Windows Vista Service Pack 2
See Also
Reference
ICustomProvider Interface
ICustomProvider Members
Microsoft.ApplicationServer.Caching Namespace
ff425062(v=azure.10).md 2011-08-26