ICustomProvider.Insert Method
Inserts an entry into 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 data As Byte()
Dim version As Long
Dim returnValue As Boolean
returnValue = instance.Insert(transactionContext, type, key, data, version)
Syntax
'Declaration
Function Insert ( _
transactionContext As Object, _
type As String, _
key As String, _
data As Byte(), _
version As Long _
) As Boolean
bool Insert (
Object transactionContext,
string type,
string key,
byte[] data,
long version
)
bool Insert (
Object^ transactionContext,
String^ type,
String^ key,
array<unsigned char>^ data,
long long version
)
boolean Insert (
Object transactionContext,
String type,
String key,
byte[] data,
long version
)
function Insert (
transactionContext : Object,
type : String,
key : String,
data : byte[],
version : long
) : boolean
Parameters
- transactionContext
The transaction context object.
- type
The type of the entry.
- key
The key of the entry.
- data
The value of the entry.
- version
The version of the entry.
Return Value
Return true
if the entry is successfully inserted. Return false
if the entry with the same key and type already exists. For all other failures, a ConfigStoreException must be thrown.
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