Dataset.Create
内容
[
隐藏
]Create(string, FileDriver)
创建一个数据集。
public static Dataset Create(string path, FileDriver driver)
| 参数 | 类型 | 描述 |
|---|---|---|
| path | String | 数据集的路径。 |
| 驱动 | FileDriver | 要使用的驱动。 |
返回值
Dataset 的实例。
异常
| 异常 | 条件 |
|---|---|
| ArgumentException | Options 对象的类型对该驱动程序不正确。 |
| ArgumentNullException | 路径为 null。 |
| GisException | 创建数据集时出错。 |
| IOException | 发生 I/O 错误。 |
| NotSupportedException | Driver 无法打开数据集。 |
| InvalidOperationException | 数据集已存在。 |
另见
- class FileDriver
- class Dataset
- namespace Aspose.Gis
- assembly Aspose.GIS
Create(AbstractPath, FileDriver)
创建一个数据集。
public static Dataset Create(AbstractPath path, FileDriver driver)
| 参数 | 类型 | 描述 |
|---|---|---|
| path | AbstractPath | 数据集的路径。 |
| 驱动 | FileDriver | 要使用的驱动。 |
返回值
Dataset 的实例。
异常
| 异常 | 条件 |
|---|---|
| ArgumentException | Options 对象的类型对该驱动程序不正确。 |
| ArgumentNullException | 路径为 null。 |
| GisException | 创建数据集时出错。 |
| IOException | 发生 I/O 错误。 |
| NotSupportedException | Driver 无法打开数据集。 |
| InvalidOperationException | 数据集已存在。 |
另见
- class AbstractPath
- class FileDriver
- class Dataset
- namespace Aspose.Gis
- assembly Aspose.GIS
Create(string, FileDriver, DriverOptions)
创建一个数据集。
public static Dataset Create(string path, FileDriver driver, DriverOptions options)
| 参数 | 类型 | 描述 |
|---|---|---|
| path | String | 数据集的路径。 |
| 驱动 | FileDriver | 要使用的驱动。 |
| options | DriverOptions | 驱动程序特定的选项。 |
返回值
Dataset 的实例。
异常
| 异常 | 条件 |
|---|---|
| ArgumentException | Options 对象的类型对该驱动程序不正确。 |
| ArgumentNullException | 路径为 null。 |
| GisException | 创建数据集时出错。 |
| IOException | 发生 I/O 错误。 |
| NotSupportedException | Driver 无法打开数据集。 |
| InvalidOperationException | 数据集已存在。 |
另见
- class FileDriver
- class DriverOptions
- class Dataset
- namespace Aspose.Gis
- assembly Aspose.GIS
Create(AbstractPath, FileDriver, DriverOptions)
创建一个数据集。
public static Dataset Create(AbstractPath path, FileDriver driver, DriverOptions options)
| 参数 | 类型 | 描述 |
|---|---|---|
| path | AbstractPath | 数据集的路径。 |
| 驱动 | FileDriver | 要使用的驱动。 |
| options | DriverOptions | 驱动程序特定的选项。 |
返回值
Dataset 的实例。
异常
| 异常 | 条件 |
|---|---|
| ArgumentException | Options 对象的类型对该驱动程序不正确。 |
| ArgumentNullException | 路径为 null。 |
| GisException | 创建数据集时出错。 |
| IOException | 发生 I/O 错误。 |
| NotSupportedException | Driver 无法打开数据集。 |
| InvalidOperationException | 数据集已存在。 |
另见
- class AbstractPath
- class FileDriver
- class DriverOptions
- class Dataset
- namespace Aspose.Gis
- assembly Aspose.GIS