다음을 통해 공유


IndexSchema 생성자 (제네릭 IEnumerable, Boolean)

지정된 인덱싱된 필드 이름 목록 및 인덱스 스키마가 항목을 고유하게 정의하는지 여부를 나타내는 값을 포함하는 IndexSchema 클래스의 새 인스턴스를 초기화합니다.

네임스페이스: Microsoft.Synchronization.MetadataStorage
어셈블리: microsoft.synchronization.metadatastorage.dll의 Microsoft.Synchronization.MetadataStorage

구문

‘선언
Public Sub New ( _
    fieldNames As IEnumerable(Of String), _
    isUnique As Boolean _
)
‘사용 방법
Dim fieldNames As IEnumerable(Of String)
Dim isUnique As Boolean

Dim instance As New IndexSchema(fieldNames, isUnique)
public IndexSchema (
    IEnumerable<string> fieldNames,
    bool isUnique
)
public:
IndexSchema (
    IEnumerable<String^>^ fieldNames, 
    bool isUnique
)
public IndexSchema (
    IEnumerable<String> fieldNames, 
    boolean isUnique
)
public function IndexSchema (
    fieldNames : IEnumerable<String>, 
    isUnique : boolean
)

매개 변수

  • fieldNames
    인덱싱된 필드 이름 목록입니다.
  • isUnique
    이 인덱스 스키마가 항목을 고유하게 식별하면 true이고, 그렇지 않으면 false입니다.

예외

예외 형식 조건

ArgumentNullException

fieldNames의 이름 중 하나가 null 참조(Visual Basic에서는 Nothing)입니다.

ArgumentException

fieldNames의 이름 중 하나의 길이가 0입니다.

ArgumentOutOfRangeException

fieldNames의 길이가 0입니다.

주의

fieldNames에 전달된 필드는 복제본에 대해 정의된 사용자 지정 필드 스키마에도 있어야 합니다.

참고 항목

참조

IndexSchema 클래스
IndexSchema 멤버
Microsoft.Synchronization.MetadataStorage 네임스페이스