WebReference.DynamicUrl 属性

获取或设置用于访问Web 服务的 URL。

命名空间:  VsWebSite
程序集:  VsWebSite.Interop(在 VsWebSite.Interop.dll 中)

语法

声明
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)

属性值

类型:System.String
用于访问此 Web 服务的 URL。

备注

DynamicUrl 属性是一个动态创建的值。 对于不使用动态属性的 Web 引用,此属性返回 ServiceLocationUrl 属性值。 在此属性中写入内容将配置网站根目录中 Web.config 文件的 <appSettings> 部分中的 URL。 如果此引用的 <appSettings> 值不存在,则将创建该值。 默认情况下,创建一个 Web 引用时,访问此 Web 服务的 URL 存储在 Web.config 文件中的动态属性中。

.NET Framework 安全性

请参见

参考

WebReference 接口

VsWebSite 命名空间