ODataModelBuilder.GetTypeConfigurationOrNull Method
Attempts to find either a pre-configured structural type or a primitive type that matches the type. If no matches are found null is returned.
Namespace: System.Web.Http.OData.Builder
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
'Declaration
Public Function GetTypeConfigurationOrNull ( _
type As Type _
) As IEdmTypeConfiguration
'Usage
Dim instance As ODataModelBuilder
Dim type As Type
Dim returnValue As IEdmTypeConfiguration
returnValue = instance.GetTypeConfigurationOrNull(type)
public IEdmTypeConfiguration GetTypeConfigurationOrNull(
Type type
)
public:
IEdmTypeConfiguration^ GetTypeConfigurationOrNull(
Type^ type
)
member GetTypeConfigurationOrNull :
type:Type -> IEdmTypeConfiguration
public function GetTypeConfigurationOrNull(
type : Type
) : IEdmTypeConfiguration
Parameters
- type
Type: System.Type
The type to find.
Return Value
Type: System.Web.Http.OData.Builder.IEdmTypeConfiguration
A pre-configured structural type or a primitive type if found; otherwise, null.