共用方式為


VCWebServiceProxyGeneratorTool.GeneratedProxyLanguage 屬性

取得或設定在產生 Web Proxy 時要使用的語言。

命名空間:  Microsoft.VisualStudio.VCProjectEngine
組件:  Microsoft.VisualStudio.VCProjectEngine (在 Microsoft.VisualStudio.VCProjectEngine.dll 中)

語法

'宣告
Property GeneratedProxyLanguage As genProxyLanguage
genProxyLanguage GeneratedProxyLanguage { get; set; }
property genProxyLanguage GeneratedProxyLanguage {
    genProxyLanguage get ();
    void set (genProxyLanguage value);
}
abstract GeneratedProxyLanguage : genProxyLanguage with get, set
function get GeneratedProxyLanguage () : genProxyLanguage
function set GeneratedProxyLanguage (value : genProxyLanguage)

屬性值

型別:Microsoft.VisualStudio.VCProjectEngine.genProxyLanguage
genProxyLanguage 列舉

備註

使用genProxyLanguage來修改這個屬性的值。

範例

請參閱HOW TO:編譯專案模型擴充性的範例程式碼如需有關如何編譯及執行這個範例資訊。

下列範例會修改GeneratedProxyLanguage在整合式的開發環境 (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")
        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

.NET Framework 安全性

請參閱

參考

VCWebServiceProxyGeneratorTool 介面

Microsoft.VisualStudio.VCProjectEngine 命名空間