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 |
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |