PerRouteContainerBase.GetODataRootContainer(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.