DisplayAlert Property

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.  

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