Component. On Enter State(UInt32, Int32) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Notifies the component when the application enters or exits the specified state.
public: void OnEnterState(System::UInt32 uStateID, int fEnter);
public: void OnEnterState(unsigned int uStateID, int fEnter);
void OnEnterState(unsigned int uStateID, int fEnter);
public void OnEnterState (uint uStateID, int fEnter);
abstract member OnEnterState : uint32 * int -> unit
Public Sub OnEnterState (uStateID As UInteger, fEnter As Integer)
true if the application is entering the state,
false if it is exiting the state.
The component should take action depending on value of
If a given number of calls are made with
true``fEnter, the component should consider the state to be in effect until the same number of calls are made with
It is possible for this method to be called with
false``fEnter more times than it was called with
true``fEnter. For example, if you are maintaining a state counter (incremented when this method is called with
true``fEnter, decremented when called with
false``fEnter), the counter should not be decremented for
false``fEnter if it is already at zero.