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.OData.Builder
Assembly:  System.Web.OData (in System.Web.OData.dll)

Syntax

public ComplexTypeConfiguration<TComplexType> ComplexType<TComplexType>()
where TComplexType : class
public:
generic<typename TComplexType>
where TComplexType : ref class
ComplexTypeConfiguration<TComplexType>^ ComplexType()
member ComplexType<'TComplexType when 'TComplexType : not struct> : unit -> ComplexTypeConfiguration<'TComplexType>
Public Function ComplexType(Of TComplexType As Class) As ComplexTypeConfiguration(Of TComplexType)

Return Value

Type: System.Web.OData.Builder.ComplexTypeConfiguration<TComplexType>

The configuration object for the specified complex type.

Type Parameters

  • TComplexType
    The type to be registered or configured.

See Also

ODataModelBuilder Class
System.Web.OData.Builder Namespace

Return to top