ObjectResult ObjectResult ObjectResult ObjectResult Class

定义

表示一个类,该类实现 IEnumerable 和 IDisposable。Represents a class that implements IEnumerable and IDisposable. 此类的实例返回自 ObjectQuery.Execute 方法。Instance of this class is returned from ObjectQuery.Execute method.

public ref class ObjectResult abstract : IDisposable, System::Collections::IEnumerable, System::ComponentModel::IListSource
public abstract class ObjectResult : IDisposable, System.Collections.IEnumerable, System.ComponentModel.IListSource
type ObjectResult = class
    interface IEnumerable
    interface IDisposable
    interface IListSource
Public MustInherit Class ObjectResult
Implements IDisposable, IEnumerable, IListSource
继承
ObjectResultObjectResultObjectResultObjectResult
派生
实现

属性

ElementType ElementType ElementType ElementType

当在派生类中重写时,获取该泛型 ObjectResult<T> 的类型。When overridden in a derived class, gets the type of the generic ObjectResult<T>.

方法

Dispose() Dispose() Dispose() Dispose()

执行与释放 (free)、释放 (release) 或重置资源关联的任务。Performs tasks associated with freeing, releasing, or resetting resources.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetNextResult<TElement>() GetNextResult<TElement>() GetNextResult<TElement>() GetNextResult<TElement>()

获取已存储过程的下一个结果集。Gets the next result set of a stored procedure.

GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

显式界面实现

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

返回一个循环访问查询结果的枚举器。Returns an enumerator that iterates through the query results.

IListSource.ContainsListCollection IListSource.ContainsListCollection IListSource.ContainsListCollection IListSource.ContainsListCollection

获取一个值,该值指示查询返回的集合是否包含集合对象。Gets a value that indicates whether the collection returned by the query contains collection objects.

IListSource.GetList() IListSource.GetList() IListSource.GetList() IListSource.GetList()

以数据绑定所用的格式返回结果。Returns the results in a format useful for data binding.

扩展方法

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

启用查询的并行化。Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于