次の方法で共有


VCWebServiceProxyGeneratorTool.GeneratedProxyLanguage プロパティ

Web プロキシの生成時に使用する言語を取得または設定します。

名前空間:  Microsoft.VisualStudio.VCProjectEngine
アセンブリ:  Microsoft.VisualStudio.VCProjectEngine (Microsoft.VisualStudio.VCProjectEngine.dll 内)

構文

'宣言
Property GeneratedProxyLanguage As genProxyLanguage
    Get
    Set
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 を使用します。

このサンプル コードをコンパイルして実行する方法については、「方法 : プロジェクト モデル機能拡張のプログラム例をコンパイルする」を参照してください。

統合開発環境 (IDE) で GeneratedProxyLanguage プロパティを変更するサンプル コードを次に示します。

' 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

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。 このメンバーは、部分的に信頼されているコードから使用することはできません。 詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

参照

VCWebServiceProxyGeneratorTool インターフェイス

Microsoft.VisualStudio.VCProjectEngine 名前空間