Share via


ODataConventionModelBuilder.Ignore Method (Type[])

Excludes a type or types from the model. This is used to remove types from the model that were added by convention during initial model discovery.

Namespace:  System.Web.Http.OData.Builder
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)

Syntax

'Declaration
Public Function Ignore ( _
    ParamArray types As Type() _
) As ODataConventionModelBuilder
'Usage
Dim instance As ODataConventionModelBuilder 
Dim types As Type()
Dim returnValue As ODataConventionModelBuilder 

returnValue = instance.Ignore(types)
public ODataConventionModelBuilder Ignore(
    params Type[] types
)
public:
ODataConventionModelBuilder^ Ignore(
    ... array<Type^>^ types
)
member Ignore : 
        types:Type[] -> ODataConventionModelBuilder
public function Ignore(
    ... types : Type[]
) : ODataConventionModelBuilder

Parameters

  • types
    Type: System.Type[]
    The types to be excluded from the model.

Return Value

Type: System.Web.Http.OData.Builder.ODataConventionModelBuilder
The same ODataConventionModelBuilder so that multiple calls can be chained.

See Also

Reference

ODataConventionModelBuilder Class

Ignore Overload

System.Web.Http.OData.Builder Namespace