Documentation for: ASP.NET Ajax Version 1.0

This documentation is for a previous version. For the current released version, see the ASP.NET Ajax documentation on MSDN.








Generated Proxy Classes path Property

Gets or sets the Web service path. This property exists at run time after the proxy class has been generated by the server.


To get or set property values for client API properties, you must call property accessor methods that are named with the get_ and set_ prefixes. For example, to get or set a value for a property such as cancel, you call the get_cancel or set_cancel methods.


// Syntax for the generated proxy class.
var path = MyNameSpace.MyServiceProxy.get_path(); 

// Syntax for a proxy class instance.
var path = myServiceProxy.get_path(); 




A string that contains the Web service path.

Return Value

The string that represents the Web service path.


The path value can be an absolute virtual path, a relative virtual path, or a fully qualified domain name and path.


You can set the path for the generated proxy class only. You cannot set it for proxy class instances.


The following example shows how to get a proxy class path.


// This function gets the Web service path.
function GetPath() 
    // Get the Web service path.
    var path = 

    // Display the path.
    DisplayMessage("The service path is: " + path);