共用方式為


IPolicyEvaluation.PolicyStateChanged Event

An event that the policy can raise to notify the host of an asynchronous change in the list of policy failures.

Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)

Syntax

'Declaration
Event PolicyStateChanged As PolicyStateChangedHandler
event PolicyStateChangedHandler PolicyStateChanged
event PolicyStateChangedHandler^ PolicyStateChanged {
    void add (PolicyStateChangedHandler^ value);
    void remove (PolicyStateChangedHandler^ value);
}
abstract PolicyStateChanged : IEvent<PolicyStateChangedHandler,
    PolicyStateChangedEventArgs>
JScript does not support events.

.NET Framework Security

See Also

Reference

IPolicyEvaluation Interface

Microsoft.TeamFoundation.VersionControl.Client Namespace