ArcGIS Pro 2.7 API Reference Guide
LayerIsCompatibleWithRulePackage Method (SymbolFactory)

ArcGIS.Desktop.Mapping Namespace > SymbolFactory Class : LayerIsCompatibleWithRulePackage Method
The full path to the rule package
The layer to check the compatibility of the rule package against
Checks the compatibility of the rule package geometry with the feature layer shape type for use as a renderer. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public bool LayerIsCompatibleWithRulePackage( 
   string rulePackagePath,
   FeatureLayer featureLayer
)
Public Function LayerIsCompatibleWithRulePackage( _
   ByVal rulePackagePath As String, _
   ByVal featureLayer As FeatureLayer _
) As Boolean

Parameters

rulePackagePath
The full path to the rule package
featureLayer
The layer to check the compatibility of the rule package against

Return Value

True if the geometry type of the rule package matches the geometry type of the layer
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
{rulePackagePath} not found or is inaccessible
Cannot use rule packages that create leaf shapes with procedural symbols.
Invalid layer geometry type.
Procedural symbol cannot be applied to rasterized feature layers. Feature layers that are in the 2D Layers group in the Contents pane are rasterized
Remarks
Checks:
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

SymbolFactory Class
SymbolFactory Members