ObjectParameterCollection.Item[String] ObjectParameterCollection.Item[String] ObjectParameterCollection.Item[String] ObjectParameterCollection.Item[String] Property

定义

提供一个索引器,供调用方按名称检索参数。Provides an indexer that allows callers to retrieve parameters by name.

public:
 property System::Data::Objects::ObjectParameter ^ default[System::String ^] { System::Data::Objects::ObjectParameter ^ get(System::String ^ name); };
public System.Data.Objects.ObjectParameter this[string name] { get; }
member this.Item(string) : System.Data.Objects.ObjectParameter
Default Public ReadOnly Property Item(name As String) As ObjectParameter

参数

name
String String String String

要查找的参数的名称。The name of the parameter to find. 此名称不应包含“@”参数标记(它用在实体 SQL 语句中),只能为实际名称。This name should not include the "@" parameter marker that is used in the Entity SQL statements, only the actual name.

属性值

异常

在集合中未找到具有指定名称的参数。No parameter with the specified name is found in the collection.

适用于