ArcGIS Pro 3.7 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 Function GetFilter( _
       ByVal filterID As String _
    ) As FilterDefinition
    public FilterDefinition GetFilter( 
       string filterID
    )

    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
    {
      var filterDefinition = bsl.GetFilter(filterID);
      //or via Linq
      //var filter = bsl.GetFilters().FirstOrDefault(f => f.ID == filterID1);
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also