다음을 통해 공유


VCWebDeploymentTool.RelativePath 속성

배포 시 기본 프로젝트 출력이 복사될 가상 디렉터리를 기준으로 하는 상대 경로를 가져오거나 설정합니다.

네임스페이스:  Microsoft.VisualStudio.VCProjectEngine
어셈블리:  Microsoft.VisualStudio.VCProjectEngine(Microsoft.VisualStudio.VCProjectEngine.dll)

구문

‘선언
Property RelativePath As String
string RelativePath { get; set; }
property String^ RelativePath {
    String^ get ();
    void set (String^ value);
}
abstract RelativePath : string with get, set
function get RelativePath () : String 
function set RelativePath (value : String)

속성 값

형식: String
배포 시 기본 프로젝트 출력이 복사될 가상 디렉터리를 기준으로 하는 상대 경로입니다.

설명

상대 경로 기본적으로 함입니다.

예제

참고 방법: 프로젝트 모델 확장성에 대한 예제 코드 컴파일 컴파일 및이 예제를 실행 하는 방법에 대 한 내용은.

다음 예제는 RelativePath 통합된 개발 환경 (IDE)에서 속성:

' add reference to Microsoft.VisualStudio.VCProjectEngine
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine
Public Module Module1
   Sub Main()
      Dim prj As VCProject
      Dim cfgs, tools As IVCCollection
      Dim cfg As VCConfiguration
      Dim wdt As VCWebDeploymentTool
      prj = DTE.Solution.Projects.Item(1).Object
      cfgs = prj.Configurations
      cfg = cfgs.Item(1)
      wdt = cfg.Tools("VCWebDeploymentTool")
      wdt.RelativePath = "relativePathName"
      MsgBox(wdt.RelativePath)
   End Sub
End Module

.NET Framework 보안

참고 항목

참조

VCWebDeploymentTool 인터페이스

Microsoft.VisualStudio.VCProjectEngine 네임스페이스