ODataConventionModelBuilder.Ignore Method
Namespace: System.Web.Http.OData.Builder
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Overload List
Name | Description | |
---|---|---|
Ignore(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. |
|
Ignore<T>() | Excludes a type from the model. This is used to remove types from the model that were added by convention during initial model discovery. |
See Also
ODataConventionModelBuilder Class
System.Web.Http.OData.Builder Namespace
Return to top
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.
Syntax
public ODataConventionModelBuilder Ignore(
params Type[] types
)
public:
ODataConventionModelBuilder^ Ignore(
... array<Type^>^ types
)
member Ignore :
[<ParamArrayAttribute>] types:Type[] -> ODataConventionModelBuilder
Public Function Ignore (
ParamArray types As Type()
) As 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 so that multiple calls can be chained.
Return to top
ODataConventionModelBuilder.Ignore<T> Method ()
Excludes a type from the model. This is used to remove types from the model that were added by convention during initial model discovery.
Syntax
public ODataConventionModelBuilder Ignore<T>()
public:
generic<typename T>
ODataConventionModelBuilder^ Ignore()
member Ignore<'T> : unit -> ODataConventionModelBuilder
Public Function Ignore(Of T) As ODataConventionModelBuilder
Return Value
Type: System.Web.Http.OData.Builder.ODataConventionModelBuilder
The same so that multiple calls can be chained.
Type Parameters
- T
Return to top