WebServicesClientProtocol.Url Property
Gets or sets the URL of the Web service method to communicate with.
Namespace: Microsoft.Web.Services3
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)
Usage
'Usage
Dim webServicesClientProtocol1 As WebServicesClientProtocol
Dim returnValue As String
returnValue = webServicesClientProtocol1.Url
Dim sampleValue As String
webServicesClientProtocol1.Url = sampleValue
Syntax
'Declaration
Public Shadows Property Url() As String
public new string Url {get; set;}
public:
property String^ Url {
String^ get();
void set(String^ value);
}
new public System.String get_Url();
public void set_Url(System.String);
public hide function get Url() : String;
public hide function set Url(String);
Property Value
The URL of the XML Web service method to communicate with.
Exceptions
Exception type | Condition |
---|---|
ArgumentException | Url is set to a value that is not accessible through HTTP or HTTPS. -or- Url is set to null. |
Remarks
When a proxy class is generated when adding a Web reference in Visual Studio or using the Web Services Description Language tool (Wsdl.exe), the Url property can be set. The value of the Url property is determined by the location attribute that is found in the Web Services Description Language document from which the proxy class was generated.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server
Target Platforms
See Also
Reference
WebServicesClientProtocol Class
WebServicesClientProtocol Members
Microsoft.Web.Services3 Namespace
SoapContext