Show / Hide Table of Contents

Constructor WmsService

WmsService(Uri)

Initializes a new instance of the WmsService class with the specified service URI.

Declaration
public WmsService(Uri serviceUri)
Parameters
Type Name Description
System.Uri serviceUri

URI of the WMS service endpoint.

Remarks

If you want to specify a different WMS version, set the VERSION parameter in the GetCapabilities URL for the service. For more information, see Parameters of a WMS GetCapabilities request URL.

Exceptions
Type Condition
System.ArgumentNullException

serviceUri is null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.2 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.2.1 - 200.8
Xamarin.Android100.2.1 - 100.14
Xamarin.iOS100.2.1 - 100.15
UWP100.2.1 - 200.8
Relevant samples
WMS service catalog: Connect to a WMS service and show the available layers and sublayers.
In This Article
Back to top Copyright © 2022 Esri.