Jaa


PerRouteContainerBase.GetODataRootContainer(String) Method

Definition

Get the root container for a given route name.

public IServiceProvider GetODataRootContainer (string routeName);
abstract member GetODataRootContainer : string -> IServiceProvider
override this.GetODataRootContainer : string -> IServiceProvider
Public Function GetODataRootContainer (routeName As String) As IServiceProvider

Parameters

routeName
String

The route name.

Returns

The root container for the route name.

Implements

Remarks

This function will throw an exception if no container is found in order to localize the failure and provide a consistent error message. Use HasODataRootContainer(String) to test of a container exists without throwing an exception.

Applies to