ActionConfiguration.ReturnsEntityViaEntitySetPath Method
Sets the return type to a single EntityType instance.
Namespace: System.Web.OData.Builder
Assembly: System.Web.OData (in System.Web.OData.dll)
Overload List
Name | Description | |
---|---|---|
ReturnsEntityViaEntitySetPath<TEntityType>(String) | Sets the return type to a single EntityType instance. |
|
ReturnsEntityViaEntitySetPath<TEntityType>(String[]) | Sets the return type to a single EntityType instance. |
See Also
ActionConfiguration Class
System.Web.OData.Builder Namespace
Return to top
ActionConfiguration.ReturnsEntityViaEntitySetPath<TEntityType> Method (String)
Sets the return type to a single EntityType instance.
Syntax
public ActionConfiguration ReturnsEntityViaEntitySetPath<TEntityType>(
string entitySetPath
)
where TEntityType : class
public:
generic<typename TEntityType>
where TEntityType : ref class
ActionConfiguration^ ReturnsEntityViaEntitySetPath(
String^ entitySetPath
)
member ReturnsEntityViaEntitySetPath<'TEntityType when 'TEntityType : not struct> :
entitySetPath:string -> ActionConfiguration
Public Function ReturnsEntityViaEntitySetPath(Of TEntityType As Class) (
entitySetPath As String
) As ActionConfiguration
Parameters
entitySetPath
Type: System.StringThe entitySetPath which contains the return EntityType instance
Return Value
Type: System.Web.OData.Builder.ActionConfiguration
Returns ActionConfiguration.
Type Parameters
- TEntityType
The type that is an EntityType
Return to top
ActionConfiguration.ReturnsEntityViaEntitySetPath<TEntityType> Method (String[])
Sets the return type to a single EntityType instance.
Syntax
public ActionConfiguration ReturnsEntityViaEntitySetPath<TEntityType>(
params string[] entitySetPath
)
where TEntityType : class
public:
generic<typename TEntityType>
where TEntityType : ref class
ActionConfiguration^ ReturnsEntityViaEntitySetPath(
... array<String^>^ entitySetPath
)
member ReturnsEntityViaEntitySetPath<'TEntityType when 'TEntityType : not struct> :
[<ParamArrayAttribute>] entitySetPath:string[] -> ActionConfiguration
Public Function ReturnsEntityViaEntitySetPath(Of TEntityType As Class) (
ParamArray entitySetPath As String()
) As ActionConfiguration
Parameters
entitySetPath
Type: System.String[]The entitySetPath which contains the return EntityType instance
Return Value
Type: System.Web.OData.Builder.ActionConfiguration
Returns ActionConfiguration.
Type Parameters
- TEntityType
The type that is an EntityType
Return to top