Share via


WebReference.DynamicUrl Property

Gets or sets the URL used to access the Web service.

Namespace:  VsWebSite
Assembly:  VsWebSite.Interop (in VsWebSite.Interop.dll)

Syntax

'Declaration
Default Property DynamicUrl As String
    Get
    Set
string this { get; set; }
property String^ default {
    String^ get ();
    void set (String^ value);
}
abstract DynamicUrl : string with get, set
function get DynamicUrl () : String
function set DynamicUrl (value : String)

Property Value

Type: System.String
The URL used to access the Web service.

Remarks

The DynamicUrl property is a dynamically created value. For Web references that do not use a dynamic property, this property returns the ServiceLocationUrl property value. Writing to this property will configure the URL in the <appSettings> section of the Web.config file for the root of the Web site. If the <appSettings> value for the reference does not exist, it will be created. By default, when a Web reference is made, the URL to access the Web service is stored in a dynamic property in the Web.config file.

.NET Framework Security

See Also

Reference

WebReference Interface

VsWebSite Namespace