Dela via


DefaultStatusCodeAttribute(Int32) Constructor

Definition

Initializes a new instance of DefaultStatusCodeAttribute.

public:
 DefaultStatusCodeAttribute(int statusCode);
public DefaultStatusCodeAttribute (int statusCode);
new Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCodeAttribute : int -> Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCodeAttribute
Public Sub New (statusCode As Integer)

Parameters

statusCode
Int32

The default status code.

Applies to