共用方式為


IDeployableFile.DeploymentRoot Property

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

Gets the base path where SharePoint will store the file.

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

Syntax

'Declaration
ReadOnly Property DeploymentRoot As String
string DeploymentRoot { get; }

Property Value

Type: System.String
A string value representing a file path.

Remarks

This value uses the following tokens:

Token Name

Description

{SharePointRoot}

The root of the SharePoint hive.

{FeatureName}

The name of the feature in which the ProjectItem is included.

{ClassResourcePath}

The class resource path on SharePoint. This value depends on whether the assembly is deployed to the Global Assembly Cache (GAC) or to a Web application.

.NET Framework Security

See Also

Reference

IDeployableFile Interface

Microsoft.VisualStudio.SharePoint Namespace