Bagikan melalui


ShardMap.GetShards Method

Gets all shards from the shard map.

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

Usage

'Usage
Dim instance As ShardMap
Dim returnValue As IEnumerable(Of Shard)

returnValue = instance.GetShards

Syntax

'Declaration
<SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")> _
Public Function GetShards As IEnumerable(Of Shard)
[SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")] 
public IEnumerable<Shard> GetShards ()
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1024:UsePropertiesWhereAppropriate")] 
public:
IEnumerable<Shard^>^ GetShards ()
/** @attribute SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate") */ 
public IEnumerable<Shard> GetShards ()
SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate") 
public function GetShards () : IEnumerable<Shard>

Return Value

All shards belonging to the shard map.

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

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