共用方式為


IDeploymentContext.IsDeploying Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets whether the project is being deployed.

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

Syntax

'Declaration
ReadOnly Property IsDeploying As Boolean
bool IsDeploying { get; }

Property Value

Type: System.Boolean
true if the project is being deployed; otherwise, false.

.NET Framework Security

See Also

Reference

IDeploymentContext Interface

Microsoft.VisualStudio.SharePoint.Deployment Namespace