BaseValidatingContext<TOptions>.SetError Method

 

Sets error after validation.

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

Overload List

Name Description
System_CAPS_pubmethod SetError(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.

System_CAPS_pubmethod SetError(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.

System_CAPS_pubmethod SetError(String, 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.

See Also

BaseValidatingContext<TOptions> Class
Microsoft.Owin.Security.OAuth Namespace

Return to top

BaseValidatingContext<TOptions>.SetError Method (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.

Syntax

public void SetError(
    string error
)
public:
void SetError(
    String^ error
)
member SetError : 
        error:string -> unit
Public Sub SetError (
    error As String
)

Parameters

Return to top

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.

Syntax

public void SetError(
    string error,
    string errorDescription
)
public:
void SetError(
    String^ error,
    String^ errorDescription
)
member SetError : 
        error:string *
        errorDescription:string -> unit
Public Sub SetError (
    error As String,
    errorDescription As String
)

Parameters

  • errorDescription
    Type: System.String

    Assigned to the ErrorDescription property

Return to top

BaseValidatingContext<TOptions>.SetError Method (String, 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.

Syntax

public void SetError(
    string error,
    string errorDescription,
    string errorUri
)
public:
void SetError(
    String^ error,
    String^ errorDescription,
    String^ errorUri
)
member SetError : 
        error:string *
        errorDescription:string *
        errorUri:string -> unit
Public Sub SetError (
    error As String,
    errorDescription As String,
    errorUri As String
)

Parameters

  • errorDescription
    Type: System.String

    Assigned to the ErrorDescription property

Return to top