Share via


MultiFormatActionResult.TryExecuteResult Method (ControllerContext, Object, ContentType)

 

Determines whether the specified context executes the processing of the result of an action method.

Namespace:   Microsoft.Web.Mvc.Resources
Assembly:  Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)

Syntax

public virtual bool TryExecuteResult(
    ControllerContext context,
    object model,
    ContentType responseFormat
)
public:
virtual bool TryExecuteResult(
    ControllerContext^ context,
    Object^ model,
    ContentType^ responseFormat
)
abstract TryExecuteResult : 
        context:ControllerContext *
        model:Object *
        responseFormat:ContentType -> bool
override TryExecuteResult : 
        context:ControllerContext *
        model:Object *
        responseFormat:ContentType -> bool
Public Overridable Function TryExecuteResult (
    context As ControllerContext,
    model As Object,
    responseFormat As ContentType
) As Boolean

Parameters

Return Value

Type: System.Boolean

true if the specified context executes the processing of the result of an action method; otherwise, false.

See Also

MultiFormatActionResult Class
Microsoft.Web.Mvc.Resources Namespace

Return to top