語言

EntityParameterCollection.AddWithValue(String, Object) 方法

定義

會為 的末尾 EntityParameterCollection加上一個值。

public System.Data.Entity.Core.EntityClient.EntityParameter AddWithValue(string parameterName, object value);
member this.AddWithValue : string * obj -> System.Data.Entity.Core.EntityClient.EntityParameter
Public Function AddWithValue (parameterName As String, value As Object) As EntityParameter

參數

parameterName
String

參數的名稱。

value
Object

要加入的值。

傳回

一個 EntityParameter 物件。

適用於