Bagikan melalui


ISharePointProjectItemDeploymentContext Interface

Represents the deployment context of a specific project item.

Namespace:  Microsoft.VisualStudio.SharePoint.Deployment
Assembly:  Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)

Syntax

'Declaration
Public Interface ISharePointProjectItemDeploymentContext _
    Inherits IDeploymentContext, IAnnotatedObject
public interface ISharePointProjectItemDeploymentContext : IDeploymentContext, 
    IAnnotatedObject

The ISharePointProjectItemDeploymentContext type exposes the following members.

Properties

  Name Description
Public property Annotations Gets an instance IAnnotationDictionary to associate custom data with the object implementing the IAnnotatedObject interface. (Inherited from IAnnotatedObject.)
Public property Feature Gets the primary feature associated with the project item.
Public property FeatureScope Gets a value representing the scope at which the project item's feature is being deployed.
Public property IsDeploying Indicates whether the project is being deployed. (Inherited from IDeploymentContext.)
Public property IsRetracting Indicates whether the project is being retracted. (Inherited from IDeploymentContext.)
Public property Logger Provides access to the project logger. (Inherited from IDeploymentContext.)
Public property Project Provides access to the current project that is being deployed or retracted. (Inherited from IDeploymentContext.)
Public property ProjectItem Gets the project item being deployed.

Top

Methods

  Name Description
Public method SiteCollectionUrl Returns the canonical URL of the Microsoft.SharePoint.SPSite that the project is connected to, according to SharePoint. (Inherited from IDeploymentContext.)
Public method SiteUrl Returns the canonical URL of the Microsoft.SharePoint.SPWeb that the project is connected to, according to SharePoint. (Inherited from IDeploymentContext.)
Public method WebApplicationUrl Returns the root URL of the SPWebApplication. (Inherited from IDeploymentContext.)

Top

Remarks

Use ISharePointProjectItemDeploymentContext objects to determine the location of the deployed project item and its files on the server. Visual Studio passes ISharePointProjectItemDeploymentContext objects to the event handlers for the DeploymentStepStarted, DeploymentStepCompleted, and ProjectItemStartupUrlRequested events.

See Also

Reference

Microsoft.VisualStudio.SharePoint.Deployment Namespace