VCWizCtlClass.OkCancelAlert Method
Displays an alert message to the wizard user, requiring the user to click OK to confirm a selected wizard option or Cancel to cancel that option.
Namespace: Microsoft.VisualStudio.VsWizard
Assembly: Microsoft.VisualStudio.VsWizard (in Microsoft.VisualStudio.VsWizard.dll)
Syntax
'Declaration
Public Overridable Function OkCancelAlert ( _
bstrMessage As String _
) As Boolean
'Usage
Dim instance As VCWizCtlClass
Dim bstrMessage As String
Dim returnValue As Boolean
returnValue = instance.OkCancelAlert(bstrMessage)
public virtual bool OkCancelAlert(
string bstrMessage
)
public:
virtual bool OkCancelAlert(
[InAttribute] String^ bstrMessage
)
public function OkCancelAlert(
bstrMessage : String
) : boolean
Parameters
bstrMessage
Type: System.StringA string containing the message to display to the user.
Return Value
Type: System.Boolean
true for OK, false for Cancel.
Implements
IVCWizCtlUI.OkCancelAlert(String)
Permissions
- 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.