VCWebServiceProxyGeneratorTool.GeneratedProxyLanguage (Propiedad)
Obtiene o establece el lenguaje que se va a usar al generar el proxy web.
Espacio de nombres: Microsoft.VisualStudio.VCProjectEngine
Ensamblado: Microsoft.VisualStudio.VCProjectEngine (en Microsoft.VisualStudio.VCProjectEngine.dll)
Sintaxis
'Declaración
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)
Valor de propiedad
Tipo: Microsoft.VisualStudio.VCProjectEngine.genProxyLanguage
Enumeración genProxyLanguage.
Comentarios
Utilice genProxyLanguage para modificar el valor de esta propiedad.
Ejemplos
Vea Cómo: Compilar el código de ejemplo de extensibilidad del modelo de proyecto para obtener información sobre cómo compilar y ejecutar este ejemplo.
El ejemplo siguiente se modifica la propiedad de GeneratedProxyLanguage en el entorno de desarrollo integrado (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
Seguridad de .NET Framework
- Plena confianza para el llamador inmediato. Un código de confianza parcial no puede utilizar este miembro. Para obtener más información, vea Utilizar bibliotecas de código que no es de plena confianza.