Delen via


EdmOperation.AddOptionalParameter Method

Definition

Overloads

AddOptionalParameter(String, IEdmTypeReference)

Creates and adds an optional parameter to this operation (as the last parameter).

AddOptionalParameter(String, IEdmTypeReference, String)

Creates and adds an optional parameter to this operation (as the last parameter).

AddOptionalParameter(String, IEdmTypeReference)

Creates and adds an optional parameter to this operation (as the last parameter).

public Microsoft.OData.Edm.EdmOptionalParameter AddOptionalParameter (string name, Microsoft.OData.Edm.IEdmTypeReference type);
member this.AddOptionalParameter : string * Microsoft.OData.Edm.IEdmTypeReference -> Microsoft.OData.Edm.EdmOptionalParameter
Public Function AddOptionalParameter (name As String, type As IEdmTypeReference) As EdmOptionalParameter

Parameters

name
String

The name of the parameter being added.

type
IEdmTypeReference

The type of the parameter being added.

Returns

Created parameter.

Applies to

AddOptionalParameter(String, IEdmTypeReference, String)

Creates and adds an optional parameter to this operation (as the last parameter).

public Microsoft.OData.Edm.EdmOptionalParameter AddOptionalParameter (string name, Microsoft.OData.Edm.IEdmTypeReference type, string defaultValue);
member this.AddOptionalParameter : string * Microsoft.OData.Edm.IEdmTypeReference * string -> Microsoft.OData.Edm.EdmOptionalParameter
Public Function AddOptionalParameter (name As String, type As IEdmTypeReference, defaultValue As String) As EdmOptionalParameter

Parameters

name
String

The name of the parameter being added.

type
IEdmTypeReference

The type of the parameter being added.

defaultValue
String

The default value for the parameter being added.

Returns

Created parameter.

Applies to