BaseValidatingContext<TOptions>.SetError Method (String, String)

Marks this context as not validated by the application and assigns various error information properties. HasError becomes true and IsValidated becomes false as a result of calling.

Namespace:  Microsoft.Owin.Security.OAuth
Assembly:  Microsoft.Owin.Security.OAuth (in Microsoft.Owin.Security.OAuth.dll)

Syntax

'Declaration
Public Sub SetError ( _
    error As String, _
    errorDescription As String _
)
'Usage
Dim instance As BaseValidatingContext 
Dim error As String 
Dim errorDescription As String

instance.SetError(error, errorDescription)
public void SetError(
    string error,
    string errorDescription
)
public:
void SetError(
    String^ error, 
    String^ errorDescription
)
member SetError : 
        error:string * 
        errorDescription:string -> unit
public function SetError(
    error : String, 
    errorDescription : String
)

Parameters

  • errorDescription
    Type: System.String
    Assigned to the ErrorDescription property

See Also

Reference

BaseValidatingContext<TOptions> Class

SetError Overload

Microsoft.Owin.Security.OAuth Namespace