Share via


FunctionConfiguration Class

 

FunctionConfiguration represents an OData function that you wish to expose via your service.

Namespace:   System.Web.OData.Builder
Assembly:  System.Web.OData (in System.Web.OData.dll)

Inheritance Hierarchy

System.Object
  System.Web.OData.Builder.ProcedureConfiguration
    System.Web.OData.Builder.FunctionConfiguration

Syntax

public class FunctionConfiguration : ProcedureConfiguration
public ref class FunctionConfiguration : ProcedureConfiguration
type FunctionConfiguration = 
    class
        inherit ProcedureConfiguration
    end
Public Class FunctionConfiguration
    Inherits ProcedureConfiguration

Properties

Name Description
System_CAPS_pubproperty BindingParameter

Gets the binding parameter.(Inherited from ProcedureConfiguration.)

System_CAPS_pubproperty EntitySetPath

The EntitySetPathExpression that entities are returned from.(Inherited from ProcedureConfiguration.)

System_CAPS_pubproperty FollowsConventions

Gets a value indicating whether procedure links follow OData conventions.(Inherited from ProcedureConfiguration.)

System_CAPS_pubproperty FullyQualifiedName

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.)

System_CAPS_pubproperty IncludeInServiceDocument

Gets or sets a value indicating whether the procedure is included in service document or not. Meaningful only for function imports; ignore for bound functions.

System_CAPS_pubproperty IsBindable

Can the procedure be bound to a url representing the BindingParameter.(Inherited from ProcedureConfiguration.)

System_CAPS_pubproperty IsComposable

System_CAPS_pubproperty IsSideEffecting

(Overrides ProcedureConfiguration.IsSideEffecting.)

System_CAPS_pubproperty Kind

(Overrides ProcedureConfiguration.Kind.)

System_CAPS_protproperty LinkFactory

Gets or sets the currently registered procedure link factory.(Inherited from ProcedureConfiguration.)

System_CAPS_protproperty ModelBuilder

Gets or sets the ODataModelBuilder used to create this configuration.(Inherited from ProcedureConfiguration.)

System_CAPS_pubproperty Name

The Name of the procedure(Inherited from ProcedureConfiguration.)

System_CAPS_pubproperty Namespace

The Namespace by default is the ModelBuilder's Namespace. (Inherited from ProcedureConfiguration.)

System_CAPS_pubproperty NavigationSource

The Navigation Source that are returned from.(Inherited from ProcedureConfiguration.)

System_CAPS_pubproperty OptionalReturn

Gets or sets a value indicating whether the return is optional or not. (Inherited from ProcedureConfiguration.)

System_CAPS_pubproperty Parameters

The parameters the procedure takes(Inherited from ProcedureConfiguration.)

System_CAPS_pubproperty ReturnType

The type returned when the procedure is invoked.(Inherited from ProcedureConfiguration.)

System_CAPS_pubproperty SupportedInFilter

Gets and sets a value indicating whether the function is supported in $filter.

System_CAPS_pubproperty SupportedInOrderBy

Gets and sets a value indicating whether the function is supported in $orderby.

System_CAPS_pubproperty Title

The Title of the procedure. When customized, the title of the procedure will be sent back when the OData client asks for an entity or a feed in JSON full metadata.(Inherited from ProcedureConfiguration.)

Methods

Name Description
System_CAPS_pubmethod AddParameter(String, IEdmTypeConfiguration)

Adds a new non-binding parameter.(Inherited from ProcedureConfiguration.)

System_CAPS_pubmethod CollectionEntityParameter<TElementEntityType>(String)

Adds a new non-binding collection of entity type parameter. (Inherited from ProcedureConfiguration.)

System_CAPS_pubmethod CollectionParameter<TElementType>(String)

Adds a new non-binding collection parameter(Inherited from ProcedureConfiguration.)

System_CAPS_pubmethod EntityParameter<TEntityType>(String)

Adds a new non-binding entity type parameter. (Inherited from ProcedureConfiguration.)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetFunctionLink()

Retrieves the currently registered function link factory.

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod HasFunctionLink(Func<EntityInstanceContext, Uri>, Boolean)

Register a factory that creates functions links.

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod Parameter<TParameter>(String)

Adds a new non-binding parameter(Inherited from ProcedureConfiguration.)

System_CAPS_pubmethod Returns<TReturnType>()

Establishes the return type of the Function.

System_CAPS_pubmethod ReturnsCollection<TReturnElementType>()

Establishes the return type of the Function

System_CAPS_pubmethod ReturnsCollectionFromEntitySet<TElementEntityType>(String)

Sets the return type to a collection of EntityType instances.

System_CAPS_pubmethod ReturnsCollectionViaEntitySetPath<TElementEntityType>(String)

Sets the return type to a collection of EntityType instances.

System_CAPS_pubmethod ReturnsCollectionViaEntitySetPath<TElementEntityType>(String[])

Sets the return type to a collection of EntityType instances.

System_CAPS_pubmethod ReturnsEntityViaEntitySetPath<TEntityType>(String)

Sets the return type to a single EntityType instance.

System_CAPS_pubmethod ReturnsEntityViaEntitySetPath<TEntityType>(String[])

Sets the return type to a single EntityType instance.

System_CAPS_pubmethod ReturnsFromEntitySet<TEntityType>(String)

Sets the return type to a single EntityType instance.

System_CAPS_pubmethod SetBindingParameter(String, IEdmTypeConfiguration)

Specifies the bindingParameter name, type and whether it is alwaysBindable, use only if the Function "isBindable".

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Remarks

FunctionConfigurations are exposed via $metadata as a FunctionImport element.

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.

See Also

System.Web.OData.Builder Namespace

Return to top