Share via


ShardMapManager.GetDistinctShardLocations Method

Obtains distinct shard locations from the shard map manager.

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

Usage

'Usage
Dim instance As ShardMapManager
Dim returnValue As IEnumerable(Of ShardLocation)

returnValue = instance.GetDistinctShardLocations

Syntax

'Declaration
<SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate", Justification:="Method is appropriate here because we're not just returning object state")> _
Public Function GetDistinctShardLocations As IEnumerable(Of ShardLocation)
[SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate", Justification="Method is appropriate here because we\'re not just returning object state")] 
public IEnumerable<ShardLocation> GetDistinctShardLocations ()
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1024:UsePropertiesWhereAppropriate", Justification=L"Method is appropriate here because we\'re not just returning object state")] 
public:
IEnumerable<ShardLocation^>^ GetDistinctShardLocations ()
/** @attribute SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate", Justification="Method is appropriate here because we\'re not just returning object state") */ 
public IEnumerable<ShardLocation> GetDistinctShardLocations ()
SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate", Justification="Method is appropriate here because we\u0027re not just returning object state") 
public function GetDistinctShardLocations () : IEnumerable<ShardLocation>

Return Value

Collection of shard locations associated with the shard map manager.

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

ShardMapManager Class
ShardMapManager Members
Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement Namespace