This documentation is archived and is not being maintained.

ClientSettingsProvider.ServiceUri Property

Gets or sets the Web settings service location.

Namespace:  System.Web.ClientServices.Providers
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

public static function get ServiceUri () : String 
public static function set ServiceUri (value : String)

Property Value

Type: System.String
The URI of the Web settings service.

You can set the ServiceUri property in your application code, but you will typically set the value in your application configuration file. This enables you to change the service location without recompiling your code.

When you set the service location programmatically, you must specify the complete service URI, which will always end with "Profile_JSON_AppService.axd".

NoteNote:

This class contains a link demand at the class level that applies to all members. A SecurityException is thrown when the immediate caller does not have full-trust permission. For details about security demands, see Link Demands.

The following example code demonstrates how to use this property to programmatically set the Web settings service location.

No code example is currently available or this language may not be supported.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5
Show: