Mapsui.Providers.ArcGIS.Dynamic.ArcGisLegend.GetLegendInfoAsync C# (CSharp) Method

GetLegendInfoAsync() public method

Get the legend for the given mapserver
public GetLegendInfoAsync ( string serviceUrl, ICredentials credentials = null ) : void
serviceUrl string Url to the mapserver
credentials ICredentials Credentials
return void
        public void GetLegendInfoAsync(string serviceUrl, ICredentials credentials = null)
        {
            _webRequest = CreateRequest(serviceUrl, credentials);
            _webRequest.BeginGetResponse(FinishWebRequest, null);
        }