Share via


StructuralTypeConfiguration<TStructuralType>.Property Method (Expression<Func<TStructuralType, String>>)

Adds a string property to the EDM type.

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

Syntax

'Declaration
Public Function Property ( _
    propertyExpression As Expression(Of Func(Of TStructuralType, String)) _
) As PrimitivePropertyConfiguration
'Usage
Dim instance As StructuralTypeConfiguration 
Dim propertyExpression As Expression(Of Func(Of TStructuralType, String))
Dim returnValue As PrimitivePropertyConfiguration 

returnValue = instance.Property(propertyExpression)
public PrimitivePropertyConfiguration Property(
    Expression<Func<TStructuralType, string>> propertyExpression
)
public:
PrimitivePropertyConfiguration^ Property(
    Expression<Func<TStructuralType, String^>^>^ propertyExpression
)
member Property : 
        propertyExpression:Expression<Func<'TStructuralType, string>> -> PrimitivePropertyConfiguration
public function Property(
    propertyExpression : Expression<Func<TStructuralType, String>>
) : PrimitivePropertyConfiguration

Parameters

Return Value

Type: System.Web.Http.OData.Builder.PrimitivePropertyConfiguration
A configuration object that can be used to further configure the property.

See Also

Reference

StructuralTypeConfiguration<TStructuralType> Class

Property Overload

System.Web.Http.OData.Builder Namespace