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.StringThe message that will be displayed for the failure.
policy
Type: Microsoft.TeamFoundation.VersionControl.Client.IPolicyEvaluationThe 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.