مشاركة عبر


DependencyWalker.DiscoveryProgress Event

Raises an event at intervals and reports progress on the DiscoveryProgress method.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Event DiscoveryProgress As ProgressReportEventHandler
'Usage
Dim instance As DependencyWalker 
Dim handler As ProgressReportEventHandler 

AddHandler instance.DiscoveryProgress, handler
public event ProgressReportEventHandler DiscoveryProgress
public:
 event ProgressReportEventHandler^ DiscoveryProgress {
    void add (ProgressReportEventHandler^ value);
    void remove (ProgressReportEventHandler^ value);
}
member DiscoveryProgress : IEvent<ProgressReportEventHandler,
    ProgressReportEventArgs>
JScript supports the use of events, but not the declaration of new ones.

Remarks

In Microsoft JScript, you can handle the events defined by a class, but you cannot define your own.

Event Data

The event handler receives an argument of type ProgressReportEventArgs containing data related to this event. The following ProgressReportEventArgs properties provide information specific to this event.

Argument

Description

Current

The object that is currently being scripted.

Parent

The root object that the current object is dependent on as discovered by the DiscoverDependencies method.

SubTotal

The number of objects that are dependent on the current parent that have already been processed by the DiscoverDependencies method.

SubTotalCount

The total number of objects that are dependent on the current parent that will be processed by the DiscoverDependencies method.

SubTotal/SubTotalCount*100 = percentage complete for the current parent object.

Total

The number of objects that have already been processed by the DiscoverDependencies method.

TotalCount

The total number of objects altogether that will be processed by the DiscoverDependencies method.

Total/TotalCount*100 = overall percentage complete.

Examples

Scripting

See Also

Reference

DependencyWalker Class

Microsoft.SqlServer.Management.Smo Namespace