Constructor RenderingRule
RenderingRule(RenderingRuleInfo)
Initializes a new instance of the RenderingRule class from a given RenderingRuleInfo.
Declaration
public RenderingRule(RenderingRuleInfo renderingRuleInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderingRuleInfo | renderingRuleInfo | The rendering rule info object |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 100.15 |
| .NET 6.0 | 100.13 - 100.15 |
| .NET 6.0 Windows | 100.13 - 100.15 |
| .NET Framework | 100.1 - 100.15 |
| .NET 5 | 100.10 - 100.12 |
| .NET Core 3.1 | 100.7 - 100.12 |
| Xamarin.Android | 100.1 - 100.15 |
| Xamarin.iOS | 100.1 - 100.15 |
| UWP | 100.1 - 100.15 |
Relevant samples
Raster rendering rule: Display a raster on a map and apply different rendering rules to that raster.
RenderingRule(String)
Initializes a new instance of the RenderingRule class with server side JSON.
Declaration
public RenderingRule(string renderingRuleJson)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | renderingRuleJson | The JSON that could either be a raster function object used in the image service REST API or a predefined service rendering rule. |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 100.15 |
| .NET 6.0 | 100.13 - 100.15 |
| .NET 6.0 Windows | 100.13 - 100.15 |
| .NET Framework | 100.1 - 100.15 |
| .NET 5 | 100.10 - 100.12 |
| .NET Core 3.1 | 100.7 - 100.12 |
| Xamarin.Android | 100.1 - 100.15 |
| Xamarin.iOS | 100.1 - 100.15 |
| UWP | 100.1 - 100.15 |