IVsWCFReferenceGroup.SetReferenceUrl 方法

设置的元数据 windows communication foundation (WCF) 服务引用下载的 URL。

命名空间:  Microsoft.VisualStudio.WCFReference.Interop
程序集:  Microsoft.VisualStudio.WCFReference.Interop(在 Microsoft.VisualStudio.WCFReference.Interop.dll 中)

语法

声明
Sub SetReferenceUrl ( _
    index As Integer, _
    pszReferenceUrl As String _
)
void SetReferenceUrl(
    int index,
    string pszReferenceUrl
)
void SetReferenceUrl(
    [InAttribute] int index, 
    [InAttribute] String^ pszReferenceUrl
)
abstract SetReferenceUrl : 
        index:int * 
        pszReferenceUrl:string -> unit
function SetReferenceUrl(
    index : int, 
    pszReferenceUrl : String
)

参数

  • index
    类型:Int32

    Integer 包含服务的索引引用。

  • pszReferenceUrl
    类型:String

    包含 URL 的字符串。

备注

当客户端项目的 VSHPROPID_ServiceReferenceSupported 属性为 false 时或属性,不支持方法失败。

.NET Framework 安全性

请参阅

参考

IVsWCFReferenceGroup 接口

Microsoft.VisualStudio.WCFReference.Interop 命名空间