Click or drag to resize

XMapTools.AreXMapLayersAvailable Method

Checks if one or n certain layers are available or not.

Namespace:  Ptv.XServer.Controls.Map.Tools
Assembly:  Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax
public static bool AreXMapLayersAvailable(
	string url,
	string contextKey,
	Layer[] layers,
	string profile,
	string expectedErrorCode,
	string xServerUser = null,
	string xServerPassword = null
)

Parameters

url
Type: System.String
The url to the XMap instance.
contextKey
Type: System.String
The used context key or null if none is used.
layers
Type:xserver.Layer[]
The layers to check.
profile
Type: System.String
The profile used to check the availability.
expectedErrorCode
Type: System.String
The expected error code if the at least one layer does not exist. SoapExceptions carrying this error code will be caught and the return value of the method will be false. SoapExceptions carrying another error code will not be caught and thus be thrown by this API.
xServerUser (Optional)
Type: System.String
User name needed for Azure Cloud.
xServerPassword (Optional)
Type: System.String
Password needed for Azure Cloud.

Return Value

Type: Boolean
True if one or n layers are available, false if at least one layer is not available. May throw exceptions in case of malformed url or wrong contextKey definition.
See Also