Dataset.Open

Open(string, FileDriver)

打开数据集。

public static Dataset Open(string path, FileDriver driver)
参数类型描述
path字符串数据集的路径。
驱动程序FileDriver要使用的驱动程序。

返回值

一个 Dataset 实例。

异常

异常条件
ArgumentNullException路径为 null
GisException读取数据集时出错。
IOException发生了 I/O 错误。

另见


Open(AbstractPath, FileDriver)

打开数据集。

public static Dataset Open(AbstractPath path, FileDriver driver)
参数类型描述
pathAbstractPath数据集的路径。
驱动程序FileDriver要使用的驱动程序。

返回值

一个 Dataset 实例。

异常

异常条件
ArgumentNullException路径为 null
GisException读取数据集时出错。
IOException发生了 I/O 错误。

另见


Open(string, FileDriver, DriverOptions)

打开数据集。

public static Dataset Open(string path, FileDriver driver, DriverOptions options)
参数类型描述
path字符串数据集的路径。
驱动程序FileDriver要使用的驱动程序。
optionsDriverOptions驱动程序特定的选项。

返回值

一个 Dataset 实例。

异常

异常条件
ArgumentExceptionOptions 对象的类型对该驱动程序不正确。
ArgumentNullException路径为 null
GisException读取数据集时出错。
IOException发生了 I/O 错误。

另见


Open(AbstractPath, FileDriver, DriverOptions)

打开数据集。

public static Dataset Open(AbstractPath path, FileDriver driver, DriverOptions options)
参数类型描述
pathAbstractPath数据集的路径。
驱动程序FileDriver要使用的驱动程序。
optionsDriverOptions驱动程序特定的选项。

返回值

一个 Dataset 实例。

异常

异常条件
ArgumentExceptionOptions 对象的类型对该驱动程序不正确。
ArgumentNullException路径为 null
GisException读取数据集时出错。
IOException发生了 I/O 错误。

另见


Open(IDbConnection, DatabaseDriver)

打开数据集。

public static Dataset Open(IDbConnection connection, DatabaseDriver driver)
参数类型描述
连接IDbConnection已打开到数据库的连接。
驱动程序DatabaseDriver要使用的驱动程序。

返回值

一个 Dataset 实例。

异常

异常条件
ArgumentExceptionOptions 对象的类型对该驱动程序不正确。
ArgumentNullException路径为 null
GisException读取数据集时出错。
IOException发生了 I/O 错误。

另见