Compartilhar via


EmptyModelMetadataProvider Class

Inheritance Hierarchy

System.Object
  System.Web.Http.Metadata.ModelMetadataProvider
    System.Web.Http.Metadata.Providers.AssociatedMetadataProvider<ModelMetadata>
      System.Web.Http.Metadata.Providers.EmptyModelMetadataProvider

Namespace:  System.Web.Http.Metadata.Providers
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

'Declaration
Public Class EmptyModelMetadataProvider _
    Inherits AssociatedMetadataProvider(Of ModelMetadata)
'Usage
Dim instance As EmptyModelMetadataProvider
public class EmptyModelMetadataProvider : AssociatedMetadataProvider<ModelMetadata>
public ref class EmptyModelMetadataProvider : public AssociatedMetadataProvider<ModelMetadata^>
type EmptyModelMetadataProvider =  
    class
        inherit AssociatedMetadataProvider<ModelMetadata>
    end
public class EmptyModelMetadataProvider extends AssociatedMetadataProvider<ModelMetadata>

The EmptyModelMetadataProvider type exposes the following members.

Constructors

  Name Description
Public method EmptyModelMetadataProvider Initializes a new instance of the EmptyModelMetadataProvider class.

Top

Methods

  Name Description
Protected method CreateMetadataFromPrototype Creates metadata from prototype. (Overrides AssociatedMetadataProvider<TModelMetadata>.CreateMetadataFromPrototype(TModelMetadata, Func<Object>).)
Protected method CreateMetadataPrototype Creates a prototype of the metadata provider of the EmptyModelMetadataProvider. (Overrides AssociatedMetadataProvider<TModelMetadata>.CreateMetadataPrototype(IEnumerable<Attribute>, Type, Type, String).)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetMetadataForProperties Retrieves a list of properties for the model. (Inherited from AssociatedMetadataProvider<TModelMetadata>.)
Public method GetMetadataForProperty Retrieves the metadata for the specified property using the container type and property name. (Inherited from AssociatedMetadataProvider<TModelMetadata>.)
Public method GetMetadataForType Returns the metadata for the specified property using the type of the model. (Inherited from AssociatedMetadataProvider<TModelMetadata>.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Web.Http.Metadata.Providers Namespace