共用方式為


RecoveryManager.DetectMappingDifferences Method (ShardLocation, String)

Enumerates differences in the mappings between the global shard map manager database and the local shard database in the specified shard location.

Namespace: Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.Recovery
Assembly: Microsoft.Azure.SqlDatabase.ElasticScale.Client (in Microsoft.Azure.SqlDatabase.ElasticScale.Client.dll)

Usage

'Usage
Dim instance As RecoveryManager
Dim location As ShardLocation
Dim shardMapName As String
Dim returnValue As IEnumerable(Of RecoveryToken)

returnValue = instance.DetectMappingDifferences(location, shardMapName)

Syntax

'Declaration
<SuppressMessageAttribute("Microsoft.Maintainability", "CA1506:AvoidExcessiveClassCoupling")> _
<SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")> _
Public Function DetectMappingDifferences ( _
    location As ShardLocation, _
    shardMapName As String _
) As IEnumerable(Of RecoveryToken)
[SuppressMessageAttribute("Microsoft.Maintainability", "CA1506:AvoidExcessiveClassCoupling")] 
[SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")] 
public IEnumerable<RecoveryToken> DetectMappingDifferences (
    ShardLocation location,
    string shardMapName
)
[SuppressMessageAttribute(L"Microsoft.Maintainability", L"CA1506:AvoidExcessiveClassCoupling")] 
[SuppressMessageAttribute(L"Microsoft.Maintainability", L"CA1502:AvoidExcessiveComplexity")] 
public:
IEnumerable<RecoveryToken^>^ DetectMappingDifferences (
    ShardLocation^ location, 
    String^ shardMapName
)
/** @attribute SuppressMessageAttribute("Microsoft.Maintainability", "CA1506:AvoidExcessiveClassCoupling") */ 
/** @attribute SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity") */ 
public IEnumerable<RecoveryToken> DetectMappingDifferences (
    ShardLocation location, 
    String shardMapName
)
SuppressMessageAttribute("Microsoft.Maintainability", "CA1506:AvoidExcessiveClassCoupling") 
SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity") 
public function DetectMappingDifferences (
    location : ShardLocation, 
    shardMapName : String
) : IEnumerable<RecoveryToken>

Parameters

  • location
    Location of shard for which to detect inconsistencies.
  • shardMapName
    Optional parameter to specify a particular shard map.

Return Value

Collection of tokens to be used for further resolution tasks (see ResolveMappingDifferences ).

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also

Reference

RecoveryManager Class
RecoveryManager Members
Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.Recovery Namespace