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 | |
---|---|---|
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. |
|
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. |
|
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
error
Type: System.StringAssigned to the Error property
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
error
Type: System.StringAssigned to the Error property
errorDescription
Type: System.StringAssigned 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
error
Type: System.StringAssigned to the Error property
errorDescription
Type: System.StringAssigned to the ErrorDescription property
errorUri
Type: System.StringAssigned to the ErrorUri property
Return to top