Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

GeneratedProxyLanguage Property

Visual Studio .NET 2003

Specifies the language to use when generating the web proxy.

[Visual Basic .NET]
Public Property GeneratedProxyLanguage() As genProxyLanguage
[Visual Basic 6]
Property Get GeneratedProxyLanguage() As genProxyLanguage
Property Let GeneratedProxyLanguage( _
   ByVal NewValue As genProxyLanguage _
) 
[C++]
HRESULT __stdcall get_GeneratedProxyLanguage(
   /* [out, retval] */ genProxyLanguage* retVal
);
HRESULT __stdcall put_GeneratedProxyLanguage(
   /* [in] */ genProxyLanguage NewValue
);
[C#]
public genProxyLanguage GeneratedProxyLanguage {get; set;}
[JScript .NET]
public function get GeneratedProxyLanguage() : genProxyLanguage
public function set GeneratedProxyLanguage(
   NewValue : genProxyLanguage
)

Remarks

Use genProxyLanguage to modify the value of this property.

Example

The following sample code modifies the GeneratedProxyLanguage property in the development environment:

' 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")
        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

See Samples for Project Model Extensibility for information on how to compile and run this sample.

See Also

Applies To: VCWebServiceProxyGeneratorTool Object

Show:
© 2015 Microsoft