ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / BuildingSceneLayer Class / GetFilter Method
The filter id of the filter to retrieve
Example

In This Topic
    GetFilter Method (BuildingSceneLayer)
    In This Topic
    Gets a filter for the given filter id This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public FilterDefinition GetFilter( 
       string filterID
    )
    Public Function GetFilter( _
       ByVal filterID As String _
    ) As FilterDefinition

    Parameters

    filterID
    The filter id of the filter to retrieve

    Return Value

    Exceptions
    ExceptionDescription
    filter not found
    Remarks
    If a filter with the given filter id is not found a System.ArgumentException is thrown. Refer to HasFilter
    Example
    Get BuildingSceneLayer Filter ID and Filter
    string filterID1 = filter1.ID;
    var filter = bsl.GetFilter(filterID1);
    //or via Linq
    //var filter = bsl.GetFilters().FirstOrDefault(f => f.ID == filterID1);
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also