Share via


StructuralTypeConfiguration<TStructuralType>.Ignore<TProperty> Method

Excludes a property from the type.

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

Syntax

'Declaration
Public Overridable Sub Ignore(Of TProperty) ( _
    propertyExpression As Expression(Of Func(Of TStructuralType, TProperty)) _
)
'Usage
Dim instance As StructuralTypeConfiguration 
Dim propertyExpression As Expression(Of Func(Of TStructuralType, TProperty))

instance.Ignore(propertyExpression)
public virtual void Ignore<TProperty>(
    Expression<Func<TStructuralType, TProperty>> propertyExpression
)
public:
generic<typename TProperty>
virtual void Ignore(
    Expression<Func<TStructuralType, TProperty>^>^ propertyExpression
)
abstract Ignore : 
        propertyExpression:Expression<Func<'TStructuralType, 'TProperty>> -> unit  
override Ignore : 
        propertyExpression:Expression<Func<'TStructuralType, 'TProperty>> -> unit
JScript does not support generic types and methods.

Type Parameters

  • TProperty
    The property type.

Parameters

  • propertyExpression
    Type: System.Linq.Expressions.Expression<Func<TStructuralType, TProperty>>
    A lambda expression representing the navigation property for the relationship. For example, in C# t =&gt; t.MyProperty and in Visual Basic .NET Function(t) t.MyProperty .

See Also

Reference

StructuralTypeConfiguration<TStructuralType> Class

System.Web.Http.OData.Builder Namespace