[This is preliminary documentation and is subject to change.]

Performs an implicit conversion from Int32 to StatusStatusStatus.

Namespace: Simple.WebSimple.WebSimple::Web
Assembly: Simple.Web (in Simple.Web.dll)

Syntax

C#

public static implicit operator Status(

string source

)

VB

Public Shared Widening Operator CType ( _

source As String _

) As Status

C++

public:

static implicit operator Status(

String^ source

)

Parameters

source
Type: System.StringSystem.StringSystem::String
The string source.

Return Value

Type: Simple.Web.StatusSimple.Web.StatusSimple::Web::Status
A StatusStatusStatus object for the specified status.

Exceptions

Exception Condition
InvalidCastException

Examples

Status status = 404 + "Not Found";

See Also

StatusStatusStatus Structure
ImplicitImplicitImplicit Overload
Simple.WebSimple.WebSimple::Web Namespace