Show / Hide Table of Contents

Property Uri

Uri

Gets or sets the URI of the picture marker symbol.

Declaration
public Uri Uri { get;
    [Obsolete("Set the URI source using the constructor")]
    set;
}
Property Value
Type Description
System.Uri

The URI of the picture marker symbol.

Remarks

The URI is the address location of where the image is being stored. This address can come from an online source or from a locally stored location. In order to use a PictureMarkerSymbol from a URI, the symbol must be loaded asynchronously. Any properties that are changed while this symbol is loading will persist once the image has loaded.

If this symbol was created from a URI, this property has a value; it can be changed as long as the symbol has not been used yet. If this symbol was created from image data instead, this property is null and it cannot be set.

Exceptions
Type Condition
System.InvalidOperationException

This symbol was created from image data and its Uri cannot be set.

System.ArgumentNullException

Property cannot be set to null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7
In This Article
Back to top Copyright © 2022 Esri.