共用方式為


IVsWCFReferenceGroup.SetReferenceUrl 方法

設定服務參考的中繼資料的 Windows 通訊資格從下載的 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 命名空間