DisplayAlert Property
DscDisplayAlert
DscDisplayAlert can be one of these DscDisplayAlert constants. |
dscDataAlertContinue An alert is not displayed. |
dscDataAlertDisplay An alert is displayed asking the user to confirm the action. |
expression.DisplayAlert
*expression * Required. An expression that returns a DSCEventInfo object.
Example
The following example uses the DisplayAlert property in the BeforeOverwrite event to prevent the user from being prompted to overwrite an existing file when the ExportXML method is called.
Sub MSODSC_BeforeOverwrite(DSCEventInfo)
Dim dscConstants
Set dscConstants = MSODSC.Constants
' Don't alert the user when overwriting an existing file.
DSCEventInfo.DisplayAlert = dscConstants.dscDataAlertContinue
End Sub
Applies to | DSCEventInfo Object
See Also | DisplayAlerts Property