次の方法で共有


IOleComponent.FQueryTerminate Method

Called when the component manager wishes to know if the component is in a state in which it can terminate.

Namespace:  Microsoft.VisualStudio.OLE.Interop
Assembly:  Microsoft.VisualStudio.OLE.Interop (in Microsoft.VisualStudio.OLE.Interop.dll)

Syntax

'宣言
Function FQueryTerminate ( _
    fPromptUser As Integer _
) As Integer
int FQueryTerminate(
    int fPromptUser
)

Parameters

  • fPromptUser
    Type: System.Int32
    true if the user should be prompted, otherwise false.

Return Value

Type: System.Int32
If fPromptUser is false, the componentshould simply return true if it can terminate, false otherwise. If fPromptUser is true, the component should return true if it can terminate without prompting the user. Otherwise it should prompt the user, either asking the user if it can terminate and returning true or false appropriately, or giving an indication as to why it cannot terminate and returning false.

.NET Framework Security

See Also

Reference

IOleComponent Interface

Microsoft.VisualStudio.OLE.Interop Namespace