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.

note

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

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

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

Parameter

Description

value

A string that contains the Web service path.

Return Value

The string that represents the Web service path.

Remarks

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

note

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

Example

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

javascript

// This function gets the Web service path.
function GetPath() 
{
    // Get the Web service path.
    var path = 
        Samples.AspNet.UsingProxyClass.get_path();

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