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이 발생해야 합니다.

스레드 보안

이 유형의 public static(Visual Basic의Shared) 구성원은 모두 스레드가 안전합니다. 모든 인스턴스 구성원이 스레드가 안전한 것은 아닙니다.

플랫폼

개발 플랫폼

Visual Studio 2010 이상, .NET Framework 4

대상 플랫폼

Windows 7; Windows Server 2008 R2; Windows Server 2008 서비스 팩 2; Windows Vista 서비스 팩 2

참고 항목

참조 항목

ICustomProvider 인터페이스
ICustomProvider 구성원
Microsoft.ApplicationServer.Caching 네임스페이스