Proprietà VCWebServiceProxyGeneratorTool.GeneratedProxyLanguage
Ottiene o imposta il linguaggio da utilizzare per la generazione del proxy Web.
Spazio dei nomi: Microsoft.VisualStudio.VCProjectEngine
Assembly: Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)
Sintassi
'Dichiarazione
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)
Valore proprietà
Tipo: Microsoft.VisualStudio.VCProjectEngine.genProxyLanguage
Enumerazione genProxyLanguage
Note
Utilizzare genProxyLanguage per modificare il valore di questa proprietà.
Esempi
Vedere Procedura: compilare codice di esempio per l'Extensibility del modello di progetto per informazioni su come compilare ed eseguire l'esempio.
Nell'esempio riportato di seguito la proprietà di GeneratedProxyLanguage nell'ambiente di sviluppo integrato (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
Sicurezza di .NET Framework
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per altre informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.