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

Specifies which HTTP method (e.g. GET, POST, HEAD) a Handler interface deals with.

Inheritance Hierarchy


Namespace: Simple.Web.HttpSimple.Web.HttpSimple::Web::Http
Assembly: Simple.Web (in Simple.Web.dll)



[AttributeUsage(AttributeTargets.Interface, AllowMultiple = false, Inherited = false)]

public class HttpMethodAttributeAttribute


<AttributeUsage(AttributeTargets.Interface, AllowMultiple := False, Inherited := False)> _

Public Class HttpMethodAttribute Inherits Attribute


[AttributeUsage(AttributeTargets::Interface, AllowMultiple = false, Inherited = false)]

public ref class HttpMethodAttributepublic Attribute

The HttpMethodAttributeHttpMethodAttributeHttpMethodAttribute type exposes the following members.


Name Description
HttpMethodAttribute(string)New(String)HttpMethodAttribute(String^) Initializes a new instance of the HttpMethodAttributeHttpMethodAttributeHttpMethodAttribute class.
HttpMethodAttribute(string, string)New(String, String)HttpMethodAttribute(String^, String^) Initializes a new instance of the HttpMethodAttributeHttpMethodAttributeHttpMethodAttribute class.


Name Description
HttpMethodHttpMethodHttpMethod Gets the HTTP Method.
MethodMethodMethod Gets the entry-point method name.
TypeIdTypeIdTypeId When implemented in a derived class, gets a unique identifier for this Attribute. (Inherited from AttributeAttributeAttribute.)


Name Description
Equals(object)Equals(Object)Equals(Object^) Returns a value that indicates whether this instance is equal to a specified object. (Inherited from AttributeAttributeAttribute.)
Finalize()Finalize()Finalize() Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from ObjectObjectObject.)
  Get(Type)Get(Type)Get(Type^) Gets the HttpMethodAttributeHttpMethodAttributeHttpMethodAttribute specified type.
GetHashCode()GetHashCode()GetHashCode() Returns the hash code for this instance. (Inherited from AttributeAttributeAttribute.)
  GetMethod(Type)GetMethod(Type)GetMethod(Type^) Gets the entry-point method name for a handler type.
GetType()GetType()GetType() Gets the Type of the current instance. (Inherited from ObjectObjectObject.)
  IsAppliedTo(Type)IsAppliedTo(Type)IsAppliedTo(Type^) Determines whether the HttpMethodAttributeHttpMethodAttributeHttpMethodAttribute is applied to the specified type.
IsDefaultAttribute()IsDefaultAttribute()IsDefaultAttribute() When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class. (Inherited from AttributeAttributeAttribute.)
Match(object)Match(Object)Match(Object^) When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. (Inherited from AttributeAttributeAttribute.)
MemberwiseClone()MemberwiseClone()MemberwiseClone() Creates a shallow copy of the current Object. (Inherited from ObjectObjectObject.)
ToString()ToString()ToString() Returns a string that represents the current object. (Inherited from ObjectObjectObject.)

Explicit Interface Implementations

Name Description
  _Attribute.GetIDsOfNames(Guid, IntPtr, uint, uint, IntPtr)_Attribute.GetIDsOfNames(Guid, IntPtr, UInteger, UInteger, IntPtr)_Attribute::GetIDsOfNames(Guid, IntPtr, unsigned int, unsigned int, IntPtr) Maps a set of names to a corresponding set of dispatch identifiers. (Inherited from AttributeAttributeAttribute.)
  _Attribute.GetTypeInfo(uint, uint, IntPtr)_Attribute.GetTypeInfo(UInteger, UInteger, IntPtr)_Attribute::GetTypeInfo(unsigned int, unsigned int, IntPtr) Retrieves the type information for an object, which can be used to get the type information for an interface. (Inherited from AttributeAttributeAttribute.)
  _Attribute.GetTypeInfoCount(uint)_Attribute.GetTypeInfoCount(UInteger)_Attribute::GetTypeInfoCount(unsigned int) Retrieves the number of type information interfaces that an object provides (either 0 or 1). (Inherited from AttributeAttributeAttribute.)
  _Attribute.Invoke(uint, Guid, uint, short, IntPtr, IntPtr, IntPtr, IntPtr)_Attribute.Invoke(UInteger, Guid, UInteger, Short, IntPtr, IntPtr, IntPtr, IntPtr)_Attribute::Invoke(unsigned int, Guid, unsigned int, short, IntPtr, IntPtr, IntPtr, IntPtr) Provides access to properties and methods exposed by an object. (Inherited from AttributeAttributeAttribute.)

See Also

Simple.Web.HttpSimple.Web.HttpSimple::Web::Http Namespace