Microsoft.VisualStudio.SharePoint.Deployment 命名空间

Microsoft.VisualStudio.SharePoint.Deployment 命名空间包含可用于扩展 SharePoint 项目的部署过程的类型。有关使用此命名空间中的类型的更多信息,请参见扩展 SharePoint 打包和部署

虽然此命名空间中的大多数类型都是接口,但是只有 IDeploymentStep 接口适合在您的代码中实现:实现此接口以便定义一个新的可在部署或撤消 SharePoint 项目项时执行的部署步骤。有关更多信息,请参见 演练:为 SharePoint 项目创建自定义部署步骤

您还可以通过将新的 IDeploymentConfiguration 对象添加到 SharePoint 项目的 DeploymentConfigurations 属性来创建您自己的部署配置。有关更多信息,请参见 演练:为 SharePoint 项目创建自定义部署步骤

  说明
公共类 DeploymentStepAttribute 标识实现部署步骤的类。
公共类 DeploymentStepIds 定义随 Visual Studio 提供的部署步骤的 ID。

接口

  接口 说明
公共接口 IDeploymentConfiguration 表示 SharePoint 项目的部署配置。
公共接口 IDeploymentConfigurationDictionary 包含部署步骤的集合。
公共接口 IDeploymentConflict 表示 SharePoint 项目项所部署的项与 SharePoint 站点上的项之间的冲突。
公共接口 IDeploymentConflictCollection 表示 IDeploymentConflict 对象的集合。每个 IDeploymentConflict 表示 SharePoint 项目项所部署的项与 SharePoint 站点上的项之间的冲突。
公共接口 IDeploymentContext 表示当部署或撤消 SharePoint 项目时执行的部署步骤的上下文。
公共接口 IDeploymentStep 表示 SharePoint 项目的部署步骤。
公共接口 IDeploymentStepInfo 包含有关 SharePoint 项目的部署步骤的信息。
公共接口 ISharePointProjectItemDeploymentContext 表示特定项目项的部署上下文。

请参见

参考

其他资源

扩展 SharePoint 打包和部署

演练:为 SharePoint 项目创建自定义部署步骤