Share via


ODataModelBuilder.ComplexType<TComplexType> Method

Registers a type as a complex type in the model and returns an object that can be used to configure the complex type. This method can be called multiple times for the same type to perform multiple lines of configuration.

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

Syntax

'Declaration
Public Function ComplexType(Of TComplexType As Class) As ComplexTypeConfiguration(Of TComplexType)
'Usage
Dim instance As ODataModelBuilder 
Dim returnValue As ComplexTypeConfiguration(Of TComplexType)

returnValue = instance.ComplexType()
public ComplexTypeConfiguration<TComplexType> ComplexType<TComplexType>()
where TComplexType : class
public:
generic<typename TComplexType>
where TComplexType : ref class 
ComplexTypeConfiguration<TComplexType>^ ComplexType()
member ComplexType : unit -> ComplexTypeConfiguration<'TComplexType>  when 'TComplexType : not struct
JScript does not support generic types and methods.

Type Parameters

  • TComplexType
    The type to be registered or configured.

Return Value

Type: System.Web.Http.OData.Builder.ComplexTypeConfiguration<TComplexType>
The configuration object for the specified complex type.

See Also

Reference

ODataModelBuilder Class

System.Web.Http.OData.Builder Namespace