ICustomProvider.Insert Method (Object, String, String, Byte , Int64)

 

Inserts an entry into the configuration store.

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

Syntax

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
)
abstract Insert : 
        transactionContext:Object *
        type:string *
        key:string *
        data:byte[] *
        version:int64 -> bool
Function Insert (
    transactionContext As Object,
    type As String,
    key As String,
    data As Byte(),
    version As Long
) As Boolean

Parameters

  • transactionContext
    Type: System.Object

    The transaction context object.

Return Value

Type: System.Boolean

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.

See Also

ICustomProvider Interface
Microsoft.ApplicationServer.Caching Namespace

Return to top