ActionConfiguration Class
ActionConfiguration represents an OData action that you wish to expose via your service.
Inheritance Hierarchy
System.Object
System.Web.Http.OData.Builder.ProcedureConfiguration
System.Web.Http.OData.Builder.ActionConfiguration
Namespace: System.Web.Http.OData.Builder
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
'Declaration
Public Class ActionConfiguration _
Inherits ProcedureConfiguration
'Usage
Dim instance As ActionConfiguration
public class ActionConfiguration : ProcedureConfiguration
public ref class ActionConfiguration : public ProcedureConfiguration
type ActionConfiguration =
class
inherit ProcedureConfiguration
end
public class ActionConfiguration extends ProcedureConfiguration
The ActionConfiguration type exposes the following members.
Properties
Name | Description | |
---|---|---|
BindingParameter | Get the bindingParameter. | |
ContainerQualifiedName | Gets the qualified name of the procedure when used in OData urls. Qualification is required to distinguish the procedure from other possible single part identifiers. (Inherited from ProcedureConfiguration.) | |
EntitySet | Gets or sets the EntitySet that entities are returned from. (Inherited from ProcedureConfiguration.) | |
FollowsConventions | Gets a value indicating whether links provided by GetActionLink() follow OData conventions. | |
FullName | Gets the FullName that is the ContainerQualifiedName. (Inherited from ProcedureConfiguration.) | |
FullyQualifiedName | Gets the FullyQualifiedName is the ContainerQualifiedName further qualified using the Namespace. Typically this is not required, because most services have at most one container with the same name. (Inherited from ProcedureConfiguration.) | |
IsAlwaysBindable | Whether this action can always be bound. For example, imagine a Watch action that can be bound to a Movie: it might not always be possible to Watch a movie, in which case IsAlwaysBindable would return false. (Overrides ProcedureConfiguration.IsAlwaysBindable.) | |
IsBindable | Gets a value whether the action can be found to a url representing the BindingParameter. (Overrides ProcedureConfiguration.IsBindable.) | |
IsComposable | Can the procedure be composed upon. For example can a URL that invokes the procedure be used as the base url for a request that invokes the procedure and does something else with the results. (Inherited from ProcedureConfiguration.) | |
IsSideEffecting | Does the procedure have side-effects. (Inherited from ProcedureConfiguration.) | |
Kind | Gets the Kind of procedure, which can be either Action, Function or ServiceOperation. (Overrides ProcedureConfiguration.Kind.) | |
ModelBuilder | Gets or sets the associated ODataModelBuilder. (Inherited from ProcedureConfiguration.) | |
Name | Gets or sets the Name of the procedure. (Inherited from ProcedureConfiguration.) | |
Parameters | Gets the parameters the action takes. (Overrides ProcedureConfiguration.Parameters.) | |
ReturnType | Gets or sets the type returned when the procedure is invoked. (Inherited from ProcedureConfiguration.) |
Top
Methods
Name | Description | |
---|---|---|
AddParameter | Adds a new non-binding parameter. | |
CollectionParameter<TElementType> | Adds a new non-binding collection parameter. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetActionLink | Retrieves the currently registered action link factory. | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
HasActionLink | Register a factory that creates actions links. | |
MemberwiseClone | (Inherited from Object.) | |
Parameter<TParameter> | Adds a new non-binding parameter. | |
Returns<TReturnType> | Established the return type of the Action. | |
ReturnsCollection<TReturnElementType> | Establishes the return type of the Action Used when the return type is a collection of either Primitive or ComplexTypes. | |
ReturnsCollectionFromEntitySet<TElementEntityType>(String) | Sets the return type to a collection of EntityType instances. | |
ReturnsCollectionFromEntitySet<TElementEntityType>(EntitySetConfiguration<TElementEntityType>) | Sets the return type to a collection of entities. | |
ReturnsFromEntitySet<TEntityType>(String) | Sets the return type to a single EntityType instance. | |
ReturnsFromEntitySet<TEntityType>(EntitySetConfiguration<TEntityType>) | Sets the return type to a single EntityType instance. | |
SetBindingParameter | Specifies the bindingParameter name, type and whether it is alwaysBindable, use only if the Action "isBindable". | |
ToString | (Inherited from Object.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.