RemoteAttribute.HttpMethod Property

Gets or sets the HTTP method used for remote validation.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

'Declaration
Public Property HttpMethod As String 
	Get 
	Set
'Usage
Dim instance As RemoteAttribute 
Dim value As String 

value = instance.HttpMethod

instance.HttpMethod = value

Property Value

Type: System.String
The HTTP method used for remote validation. The default value is "Get".

The HTTP method can be "Get" or "Post".

Show: