ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Framework Namespace / State Class / Contains Method
The state string identifier.

Contains Method (State)
Returns whether the specified state is turned on in the state set.
Syntax
public bool Contains( 
   string stateID
)

Parameters

stateID
The state string identifier.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 2.0 or higher.
See Also