OleComponent.IOleComponent.OnEnterState Method

Notify component when app enters or exits the state given in uStateID. Simply calls through to OnChangeStateCore.

Namespace:  Microsoft.VisualStudio.PlatformUI.OleComponentSupport
Assembly:  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

‘선언
Private Sub OnEnterState ( _
    uStateID As UInteger, _
    fEnter As Integer _
) Implements IOleComponent.OnEnterState
‘사용 방법
Dim instance As OleComponent
Dim uStateID As UInteger
Dim fEnter As Integer

CType(instance, IOleComponent).OnEnterState(uStateID, _
    fEnter)
void IOleComponent.OnEnterState(
    uint uStateID,
    int fEnter
)
private:
virtual void OnEnterState(
    unsigned int uStateID, 
    int fEnter
) sealed = IOleComponent::OnEnterState
private abstract OnEnterState : 
        uStateID:uint32 * 
        fEnter:int -> unit 
private override OnEnterState : 
        uStateID:uint32 * 
        fEnter:int -> unit 
JScript does not support explicit interface implementations.

Parameters

  • fEnter
    Type: System.Int32
    If the value is TRUE (1) then we are entering the state described by uStateID otherwise we are exiting it.

Implements

IOleComponent.OnEnterState(UInt32, Int32)

Remarks

If n calls are made with TRUE (1) fEnter, component should consider the state to be in effect until n calls are made with FALSE (0) fEnter Components should be aware that it is possible for this method to be called with FALSE (0) fEnter more times than it was called with TRUE (1) fEnter (so, for example, if component is maintaining a state counter (incremented when this method is called with TRUE (1) fEnter, decremented when called with FALSE (0) fEnter), the counter should not be decremented for FALSE (0) fEnter if it is already at zero.)

.NET Framework Security

See Also

Reference

OleComponent Class

OleComponent Members

Microsoft.VisualStudio.PlatformUI.OleComponentSupport Namespace