ICustomProvider.Insert メソッド

構成ストアにエントリを挿入します。

名前空間: Microsoft.ApplicationServer.Caching
アセンブリ: Microsoft.ApplicationServer.Caching.Core (microsoft.applicationserver.caching.core.dll)

使用法

構文

'宣言
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

パラメーター

  • transactionContext
    トランザクション コンテキスト オブジェクトです。
  • type
    エントリの型です。
  • key
    エントリのキーです。
  • data
    エントリの値です。
  • version
    エントリのバージョンです。

戻り値

エントリの挿入が正常に行われた場合、true を返します。 同じキーおよび型を持つエントリが既に存在する場合、false を返します。 その他すべてのエラーの場合、ConfigStoreException がスローされます。

スレッド セーフ

この型のパブリック静的 (Visual Basic では Shared ) メンバーはスレッド セーフです。インスタンスのメンバーはいずれも、スレッド セーフである保証はありません。

プラットフォーム

開発プラットフォーム

Visual Studio 2010 およびそれ以降, .NET Framework 4

対象プラットフォーム

Windows 7; Windows Server 2008 R2; Windows Server 2008 Service Pack 2; Windows Vista Service Pack 2

関連項目

参照

ICustomProvider インターフェイス
ICustomProvider メンバー
Microsoft.ApplicationServer.Caching 名前空間