Microsoft.VisualStudio.SharePoint.Deployment 命名空间包含可用于扩展 SharePoint 项目的部署过程的类型。有关使用此命名空间中的类型的更多信息,请参见扩展 SharePoint 打包和部署。
虽然此命名空间中的大多数类型都是接口,但是只有 IDeploymentStep 接口适合在您的代码中实现:实现此接口以便定义一个新的可在部署或撤消 SharePoint 项目项时执行的部署步骤。有关更多信息,请参见 演练:为 SharePoint 项目创建自定义部署步骤。
您还可以通过将新的 IDeploymentConfiguration 对象添加到 SharePoint 项目的 DeploymentConfigurations 属性来创建您自己的部署配置。有关更多信息,请参见 演练:为 SharePoint 项目创建自定义部署步骤。
类
| 类 | 说明 | |
|---|---|---|
| .gif) | DeploymentStepAttribute | 标识实现部署步骤的类。 | 
| .gif) | DeploymentStepIds | 定义随 Visual Studio 提供的部署步骤的 ID。 | 
接口
| 接口 | 说明 | |
|---|---|---|
| .gif) | IDeploymentConfiguration | 表示 SharePoint 项目的部署配置。 | 
| .gif) | IDeploymentConfigurationDictionary | 包含部署步骤的集合。 | 
| .gif) | IDeploymentConflict | 表示 SharePoint 项目项所部署的项与 SharePoint 站点上的项之间的冲突。 | 
| .gif) | IDeploymentConflictCollection | 表示 IDeploymentConflict 对象的集合。每个 IDeploymentConflict 表示 SharePoint 项目项所部署的项与 SharePoint 站点上的项之间的冲突。 | 
| .gif) | IDeploymentContext | 表示当部署或撤消 SharePoint 项目时执行的部署步骤的上下文。 | 
| .gif) | IDeploymentStep | 表示 SharePoint 项目的部署步骤。 | 
| .gif) | IDeploymentStepInfo | 包含有关 SharePoint 项目的部署步骤的信息。 | 
| .gif) | ISharePointProjectItemDeploymentContext | 表示特定项目项的部署上下文。 |