다음을 통해 공유


VCWebServiceProxyGeneratorTool.URL 속성

사용자가 웹 참조 업데이트 명령을 지정할 때 사용되는 URL을 가져오거나 설정합니다.

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

구문

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

속성 값

형식: String
사용자가 웹 참조 업데이트 명령을 지정할 때 사용되는 URL입니다.

예제

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

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

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

Public Module Module1
    Sub Test()
        Dim prj As VCProject
        Dim cfgs As IVCCollection
        Dim cfg As VCFileConfiguration
        Dim file As VCFile
        Dim tool As VCWebServiceProxyGeneratorTool
        prj = DTE.Solution.Projects.Item(1).Object
        file = prj.AddWebReference_
          ("https://localhost /webservice1/webservice1.vsdisco")
        MsgBox(file.Name)
        cfgs = file.FileConfigurations
        MsgBox(cfgs.Count)
        cfg = cfgs.Item(1)
        MsgBox(cfg.Name)
        tool = cfg.Tool
        MsgBox(tool.URL)
    End Sub
End Module

.NET Framework 보안

참고 항목

참조

VCWebServiceProxyGeneratorTool 인터페이스

Microsoft.VisualStudio.VCProjectEngine 네임스페이스