EdmParameterBag.GetParameter<T> Method
[This page is specific to the Entity Framework version 6. The latest version is available as the 'Entity Framework' NuGet package. For more information about Entity Framework, see msdn.com/data/ef.]
Returns the value of the parameter for the specified EdmParameterBag.ParameterName.
Namespace: Microsoft.Data.Entity.Design.DatabaseGeneration
Assembly: Microsoft.Data.Entity.Design.DatabaseGeneration (in Microsoft.Data.Entity.Design.DatabaseGeneration.dll)
Syntax
'Declaration
Public Function GetParameter(Of T As Class) ( _
parameterName As EdmParameterBag.ParameterName _
) As T
'Usage
Dim instance As EdmParameterBag
Dim parameterName As EdmParameterBag.ParameterName
Dim returnValue As T
returnValue = instance.GetParameter(parameterName)
public T GetParameter<T>(
EdmParameterBag.ParameterName parameterName
)
where T : class
public:
generic<typename T>
where T : ref class
T GetParameter(
EdmParameterBag.ParameterName parameterName
)
member GetParameter :
parameterName:EdmParameterBag.ParameterName -> 'T when 'T : not struct
JScript does not support generic types and methods.
Type Parameters
- T
The type of the parameter with the name parameterName.
Parameters
- parameterName
Type: Microsoft.Data.Entity.Design.DatabaseGeneration.EdmParameterBag.ParameterName
The name of the parameter.
Return Value
Type: T
The value of the parameter for the specified EdmParameterBag.ParameterName.