Share via


TileSource.GetUri Method

This documentation is no longer available on MSDN, however it is available as a CHM download.

Retrieves the URI for the tile specified by the given x, y coordinates and zoom level.

Namespace: Microsoft.Maps.MapControl
Assembly: Microsoft.Maps.MapControl (in Microsoft.Maps.MapControl.dll)

Usage

Syntax

'Declaration
<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId:="y")> _
<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId:="x")> _
Public Overridable Function GetUri ( _
    x As Integer, _
    y As Integer, _
    zoomLevel As Integer _
) As Uri
[SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId="y")] 
[SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId="x")] 
public virtual Uri GetUri (
    int x,
    int y,
    int zoomLevel
)
[SuppressMessageAttribute(L"Microsoft.Naming", L"CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId=L"y")] 
[SuppressMessageAttribute(L"Microsoft.Naming", L"CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId=L"x")] 
public:
virtual Uri^ GetUri (
    int x, 
    int y, 
    int zoomLevel
)
/** @attribute SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId="y") */ 
/** @attribute SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId="x") */ 
public Uri GetUri (
    int x, 
    int y, 
    int zoomLevel
)
SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId="y") 
SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId="x") 
public function GetUri (
    x : int, 
    y : int, 
    zoomLevel : int
) : Uri

Parameters

  • x
    The horizontal position of the tile.
  • y
    The vertical position of the tile.
  • zoomLevel
    The zoom level of the tile.

Return Value

Returns a Uri for the tile.

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

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Target Platforms

See Also

Reference

TileSource Class
TileSource Members
Microsoft.Maps.MapControl Namespace