SingleTaskIdleManager.IOleComponent.OnEnterState Method
Notifies the component when the application enters or exits the specified state.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
‘선언
Private Sub OnEnterState ( _
uStateID As UInteger, _
fEnter As Integer _
) Implements IOleComponent.OnEnterState
void IOleComponent.OnEnterState(
uint uStateID,
int fEnter
)
Parameters
- uStateID
Type: System.UInt32
The state, from _OLECSTATE.
- fEnter
Type: System.Int32
true if the application is entering the state, false if it is exiting the state.
Implements
IOleComponent.OnEnterState(UInt32, Int32)
Remarks
The component should take action depending on value of uStateID.
If a given number of calls are made with truefEnter, the component should consider the state to be in effect until the same number of calls are made with falsefEnter.
It is possible for this method to be called with falsefEnter more times than it was called with truefEnter. For example, if you are maintaining a state counter (incremented when this method is called with truefEnter, decremented when called with falsefEnter), the counter should not be decremented for falsefEnter if it is already at zero.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.