다음을 통해 공유


VCProjectConfigurationProperties.RemoteMachine 속성

Remote에서 원격 디버깅을 지정하는 경우, RemoteMachine 속성은 디버깅할 프로그램이 포함된 컴퓨터 이름을 지정합니다.

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

구문

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

속성 값

형식: System.String
원격 디버거를 사용하여 디버깅할 원격 컴퓨터입니다.

설명

이 샘플을 컴파일하고 실행하는 방법을 보려면 방법: 프로젝트 모델 확장성에 대한 예제 코드 컴파일을 참조하십시오.

예제

[Visual Basic]

다음 예제 코드를 수정 하는 RemoteMachine 개발 환경에서 속성:

' add reference to Microsoft.VisualStudio.VCProjectEngine
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine

Public Module Module1
    Sub Test()
        Dim mystring As String
        Dim prj As VCProject
        Dim cfgs, tools As IVCCollection
        Dim cfg As VCConfiguration
        Dim tool As VCDebugSettings
        prj = DTE.Solution.Projects.Item(1).Object
        cfgs = prj.Configurations
        cfg = cfgs.Item(1)
        tool = cfg.DebugSettings
        tool.Remote = RemoteDebuggerType.DbgRemote
        tool.RemoteMachine = "test"
    End Sub
End Module

.NET Framework 보안

  • 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.

참고 항목

참조

VCProjectConfigurationProperties 인터페이스

Microsoft.VisualStudio.VCProject 네임스페이스