Поделиться через


VCWebServiceProxyGeneratorTool.GeneratedProxyLanguage - свойство

Gets or sets the language to use when generating the Web proxy.

Пространство имен:  Microsoft.VisualStudio.VCProjectEngine
Сборка:  Microsoft.VisualStudio.VCProjectEngine (в Microsoft.VisualStudio.VCProjectEngine.dll)

Синтаксис

'Декларация
Property GeneratedProxyLanguage As genProxyLanguage
'Применение
Dim instance As VCWebServiceProxyGeneratorTool
Dim value As genProxyLanguage

value = instance.GeneratedProxyLanguage

instance.GeneratedProxyLanguage = value
genProxyLanguage GeneratedProxyLanguage { get; set; }
property genProxyLanguage GeneratedProxyLanguage {
    genProxyLanguage get ();
    void set (genProxyLanguage value);
}
function get GeneratedProxyLanguage () : genProxyLanguage
function set GeneratedProxyLanguage (value : genProxyLanguage)

Значение свойства

Тип: Microsoft.VisualStudio.VCProjectEngine.genProxyLanguage

A genProxyLanguage enumeration

Заметки

Use genProxyLanguage to modify the value of this property.

Примеры

See How to: Compile Example Code for Project Model Extensibility for information about how to compile and run this example.

The following example modifies the GeneratedProxyLanguage property in the integrated development environment (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.GeneratedProxyLanguage)
    End Sub
End Module

Разрешения

  • Полное доверие для непосредственно вызывающего метода. Этот член не может быть использован частично доверенным кодом. Дополнительные сведения см. в разделе Using Libraries from Partially Trusted Code.

См. также

Ссылки

VCWebServiceProxyGeneratorTool Интерфейс

VCWebServiceProxyGeneratorTool - члены

Microsoft.VisualStudio.VCProjectEngine - пространство имен