Share via


PolicyFailure Constructor (String, IPolicyEvaluation)

Initializes a new PolicyFailure instance.

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

Syntax

'Declaration
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.

.NET Framework Security

See Also

Reference

PolicyFailure Class

PolicyFailure Overload

Microsoft.TeamFoundation.VersionControl.Client Namespace