Share via


ReplicaMetadata.CustomReplicaMetadata Property

When overridden in a derived class, gets or sets the custom metadata field that is associated with this replica.

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

Syntax

'Declaration
Public MustOverride Property CustomReplicaMetadata As Byte()
    Get
    Set
'Usage
Dim instance As ReplicaMetadata
Dim value As Byte()

value = instance.CustomReplicaMetadata

instance.CustomReplicaMetadata = value
public abstract byte[] CustomReplicaMetadata { get; set; }
public:
virtual property array<unsigned char>^ CustomReplicaMetadata {
    array<unsigned char>^ get () abstract;
    void set (array<unsigned char>^ value) abstract;
}
abstract CustomReplicaMetadata : byte[] with get, set
abstract function get CustomReplicaMetadata () : byte[]
abstract function set CustomReplicaMetadata (value : byte[])

Property Value

Type: System.Byte[]
The custom metadata field that is associated with this replica. A null reference (Nothing in Visual Basic) when no custom field has been set.

Exceptions

Exception Condition
ObjectDisposedException

The object has been disposed or was not initialized correctly.

Remarks

The custom metadata field provides a place in which to store information about the replica as a whole.

See Also

Reference

ReplicaMetadata Class

Microsoft.Synchronization.MetadataStorage Namespace