Share via


SimpleSyncServices.SerializeReplicaMetadata Method

Serializes the contents of a metadata storage service store to a destination file in a canonical format.

Namespace:  Microsoft.Synchronization.SimpleProviders
Assembly:  Microsoft.Synchronization.SimpleProviders (in Microsoft.Synchronization.SimpleProviders.dll)

Syntax

'Declaration
Public Sub SerializeReplicaMetadata ( _
    filePath As String, _
    compatibilityLevel As CompatibilityLevel _
)
'Usage
Dim instance As SimpleSyncServices
Dim filePath As String
Dim compatibilityLevel As CompatibilityLevel

instance.SerializeReplicaMetadata(filePath, _
    compatibilityLevel)
public void SerializeReplicaMetadata(
    string filePath,
    CompatibilityLevel compatibilityLevel
)
public:
void SerializeReplicaMetadata(
    String^ filePath, 
    CompatibilityLevel compatibilityLevel
)
member SerializeReplicaMetadata : 
        filePath:string * 
        compatibilityLevel:CompatibilityLevel -> unit 
public function SerializeReplicaMetadata(
    filePath : String, 
    compatibilityLevel : CompatibilityLevel
)

Parameters

  • filePath
    Type: System.String
    Serializes the contents of a metadata storage service store to a destination file in a canonical format.

Exceptions

Exception Condition
ArgumentNullException

filePath is a null reference (Nothing in Visual Basic).

ArgumentOutOfRangeException

compatibilityLevel is SyncFrameworkVersion2.

See Also

Reference

SimpleSyncServices Class

Microsoft.Synchronization.SimpleProviders Namespace