Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Initializes a new instance of the IndexSchema class that has the specified indexed field name and a value that indicates whether this index schema uniquely defines an item.
Namespace: Microsoft.Synchronization.MetadataStorage
Assembly: Microsoft.Synchronization.MetadataStorage (in microsoft.synchronization.metadatastorage.dll)
Syntax
'Declaration
Public Sub New ( _
fieldName As String, _
isUnique As Boolean _
)
'Usage
Dim fieldName As String
Dim isUnique As Boolean
Dim instance As New IndexSchema(fieldName, isUnique)
public IndexSchema (
string fieldName,
bool isUnique
)
public:
IndexSchema (
String^ fieldName,
bool isUnique
)
public IndexSchema (
String fieldName,
boolean isUnique
)
public function IndexSchema (
fieldName : String,
isUnique : boolean
)
Parameters
- fieldName
The indexed field name.
- isUnique
true if this index schema uniquely identifies an item; otherwise, false.
Exceptions
| Exception type | Condition |
|---|---|
fieldName is a null reference (Nothing in Visual Basic). |
|
fieldName is 0 length. |
Remarks
The field passed in fieldName must also exist in the custom field schema that is defined for the replica.
See Also
Reference
IndexSchema Class
IndexSchema Members
Microsoft.Synchronization.MetadataStorage Namespace