共用方式為


IDeploymentContext 介面

定義

表示部署步驟的內容,即部署或撤銷 SharePoint 專案時所執行的步驟。

public interface class IDeploymentContext : Microsoft::VisualStudio::SharePoint::IAnnotatedObject
public interface IDeploymentContext : Microsoft.VisualStudio.SharePoint.IAnnotatedObject
type IDeploymentContext = interface
    interface IAnnotatedObject
Public Interface IDeploymentContext
Implements IAnnotatedObject
衍生
實作

備註

Visual Studio 會傳遞 IDeploymentContextCanExecute 部署步驟的 和 Execute 方法。 新的部署內容會在部署和撤銷作業開始時初始化。

介面 IDeploymentContext 會實作 IAnnotatedObject ,讓部署步驟在步驟之間儲存和傳遞數據。

屬性

Annotations

取得 IAnnotationDictionary 執行個體,以建立自訂資料與實作 IAnnotatedObject 介面之物件的關聯。

(繼承來源 IAnnotatedObject)
IsCanceled

取得是否使用者已取消部署。

IsDeploying

取得是否正在部署專案。

IsRetracting

取得是否正在撤銷專案。

Logger

取得對專案記錄器的存取。

Project

取得對目前正在部署或撤銷之專案的存取。

StartMode

取得起始模式 (部署為何已啟始的原因) 的存取。

方法

SiteCollectionUrl()

傳回 Microsoft.SharePoint.SPSite 的正式 URL,這是專案所連線且取決於 SharePoint 的 URL。

SiteUrl()

傳回 Microsoft.SharePoint.SPWeb 的正式 URL,這是專案所連線且取決於 SharePoint 的 URL。

WebApplicationUrl()

傳回 SPWebApplication 的根目錄 URL。

適用於