EdmFunctionBase.AddParameter Method (String, IEdmTypeReference, EdmFunctionParameterMode)
Creates and adds a parameter to this function (as the last parameter).
Namespace: Microsoft.Data.Edm.Library
Assembly: Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)
Syntax
'Declaration
Public Function AddParameter ( _
name As String, _
type As IEdmTypeReference, _
mode As EdmFunctionParameterMode _
) As EdmFunctionParameter
'Usage
Dim instance As EdmFunctionBase
Dim name As String
Dim type As IEdmTypeReference
Dim mode As EdmFunctionParameterMode
Dim returnValue As EdmFunctionParameter
returnValue = instance.AddParameter(name, _
type, mode)
public EdmFunctionParameter AddParameter(
string name,
IEdmTypeReference type,
EdmFunctionParameterMode mode
)
public:
EdmFunctionParameter^ AddParameter(
String^ name,
IEdmTypeReference^ type,
EdmFunctionParameterMode mode
)
member AddParameter :
name:string *
type:IEdmTypeReference *
mode:EdmFunctionParameterMode -> EdmFunctionParameter
public function AddParameter(
name : String,
type : IEdmTypeReference,
mode : EdmFunctionParameterMode
) : EdmFunctionParameter
Parameters
- name
Type: System.String
The name of the parameter being added.
- type
Type: Microsoft.Data.Edm.IEdmTypeReference
The type of the parameter being added.
- mode
Type: Microsoft.Data.Edm.EdmFunctionParameterMode
The mode of the parameter.
Return Value
Type: Microsoft.Data.Edm.Library.EdmFunctionParameter
The created parameter.