Initializes a new PolicyFailure instance.
Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
Syntax
声明
Public Sub New ( _
    message As String, _
    policy As IPolicyEvaluation _
)
public PolicyFailure(
    string message,
    IPolicyEvaluation policy
)
public:
PolicyFailure(
    String^ message, 
    IPolicyEvaluation^ policy
)
new : 
        message:string * 
        policy:IPolicyEvaluation -> PolicyFailure
public function PolicyFailure(
    message : String, 
    policy : IPolicyEvaluation
)
Parameters
- message
 Type: System.String
 The message that will be displayed for the failure.
- policy
 Type: Microsoft.TeamFoundation.VersionControl.Client.IPolicyEvaluation
 The policy that generated this failure.
.NET Framework Security
- 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.