Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

VCWebServiceProxyGeneratorTool.GeneratedProxyLanguage Property 

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

Namespace: Microsoft.VisualStudio.VCProjectEngine
Assembly: Microsoft.VisualStudio.VCProjectEngine (in microsoft.visualstudio.vcprojectengine.dll)

genProxyLanguage GeneratedProxyLanguage { get; set; }
/** @property */
genProxyLanguage get_GeneratedProxyLanguage ()

/** @property */
void set_GeneratedProxyLanguage (/** @attribute InAttribute() */ genProxyLanguage language)

function get GeneratedProxyLanguage () : genProxyLanguage

function set GeneratedProxyLanguage (language : genProxyLanguage)

Property Value

A genProxyLanguage enumeration

Use genProxyLanguage to modify the value of this property.

See Samples 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_
          ("http://localhost /webservice1/webservice1.vsdisco")
        cfgs = file.FileConfigurations
        cfg = cfgs.Item(1)
        tool = cfg.Tool
    End Sub
End Module
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.