SqlCommand 方法

(请参见 受保护的方法 
 名称说明
Public method BeginExecuteNonQuery 已重载。 启动此 SqlCommand 描述的 Transact-SQL 语句或存储过程的异步执行。
Public method BeginExecuteReader 已重载。 启动此 SqlCommand 描述的 Transact-SQL 语句或存储过程的异步执行,并从服务器中检索一个或多个结果集。
Public method BeginExecuteXmlReader 已重载。 启动此 SqlCommand 描述的 Transact-SQL 语句或存储过程的异步执行,并将结果作为 XmlReader 对象返回。
Public method Supported by the .NET Compact Framework Cancel 已重写。 尝试取消 SqlCommand 的执行。
Public method Clone 创建作为当前实例副本的新 SqlCommand 对象。
Public method CreateObjRef  创建一个对象,该对象包含生成用于与远程对象进行通信的代理所需的全部相关信息。 (从 MarshalByRefObject 继承。)
Public method CreateParameter 创建 SqlParameter 对象的新实例。
Public method Supported by the .NET Compact Framework Dispose  已重载。 释放由 Component 占用的资源。 (从 Component继承。)
Public method EndExecuteNonQuery 完成 Transact-SQL 语句的异步执行。
Public method EndExecuteReader 完成 Transact-SQL 语句的异步执行,返回请求的SqlDataReader
Public method EndExecuteXmlReader 完成 Transact-SQL 语句的异步执行,将请求的数据以 XML 形式返回。
Public method Supported by the .NET Compact Framework Equals  已重载。 确定两个 Object 实例是否相等。 (从 Object 继承。)
Public method Supported by the .NET Compact Framework ExecuteNonQuery 已重写。 对连接执行 Transact-SQL 语句并返回受影响的行数。
Public method Supported by the .NET Compact Framework ExecuteReader 已重载。 将 CommandText 发送到 Connection 并生成一个SqlDataReader
Public method Supported by the .NET Compact Framework ExecuteScalar 已重写。 执行查询,并返回查询所返回的结果集中第一行的第一列。忽略其他列或行。
Public method Supported by the .NET Compact Framework ExecuteXmlReader  CommandText 发送到 Connection 并生成一个XmlReader 对象。
Public method Supported by the .NET Compact Framework GetHashCode  用作特定类型的哈希函数。GetHashCode 适合在哈希算法和数据结构(如哈希表)中使用。 (从 Object 继承。)
Public method GetLifetimeService  检索控制此实例的生存期策略的当前生存期服务对象。 (从MarshalByRefObject 继承。)
Public method Supported by the .NET Compact Framework GetType  获取当前实例的 Type。 (从 Object 继承。)
Public method InitializeLifetimeService  获取控制此实例的生存期策略的生存期服务对象。 (从MarshalByRefObject 继承。)
Public method Supported by the .NET Compact Framework Prepare 已重写。 在 SQL Server 的实例上创建命令的一个准备版本。
Public method Static Supported by the .NET Compact Framework ReferenceEquals  确定指定的 Object 实例是否是相同的实例。 (从 Object 继承。)
Public method Supported by the .NET Compact Framework ResetCommandTimeout  CommandTimeout 属性重置为其默认值。
Public method Supported by the .NET Compact Framework ToString  返回包含 Component 的名称的 String(如果有)。不应重写此方法。 (从 Component 继承。)
页首
 名称说明
Protected method Supported by the .NET Compact Framework Dispose  已重载。 释放由 Component 占用的资源。 (从 Component继承。)
Protected method Supported by the .NET Compact Framework Finalize  在通过垃圾回收将 Component 回收之前,释放非托管资源并执行其他清理操作。 (从 Component 继承。)
Protected method GetService  返回一个对象,该对象表示由 Component 或它的 Container提供的服务。 (从 Component 继承。)
Protected method Supported by the .NET Compact Framework MemberwiseClone  已重载。 (从 MarshalByRefObject 继承。)
页首

本文参考资料:

http://msdn.microsoft.com/zh-cn/library/182ax5k8(v=vs.80).aspx

原文地址:https://www.cnblogs.com/lxxhome/p/3085513.html