VCWebServiceProxyGeneratorTool.URL Property
Gets or sets the URL used when a user specifies the Update Web Reference command.
Namespace: Microsoft.VisualStudio.VCProjectEngine
Assembly: Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)
Syntax
'Declaration
Property URL As String
Get
Set
string URL { get; set; }
property String^ URL {
String^ get ();
void set (String^ value);
}
abstract URL : string with get, set
function get URL () : String
function set URL (value : String)
Property Value
Type: System.String
The URL used when a user specifies the Update Web Reference command.
Examples
See How to: Compile Example Code for Project Model Extensibility for information about how to compile and run this example.
The following example modifies the URL property in the integrated development environment (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.URL)
End Sub
End Module
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.