Share via


PropertyPage.OnOK Method ()

 

Indicates that the user has clicked either the OK button or the Close button. The OnOK method is invoked on every property page so that all changes can take effect.

Namespace:   Microsoft.ManagementConsole
Assembly:  Microsoft.ManagementConsole (in Microsoft.ManagementConsole.dll)

Syntax

protected internal virtual bool OnOK()
public protected:
virtual bool OnOK()
abstract OnOK : unit -> bool
override OnOK : unit -> bool
Protected Friend Overridable Function OnOK As Boolean

Return Value

Type: System.Boolean

The return value indicates whether the property page can be closed. The default implementation of this method allows the operation to proceed. The owner of the page can override it and block the request by returning false.

See Also

PropertyPage Class
Microsoft.ManagementConsole Namespace

Return to top