Partager via


IVsWCFReferenceGroup.SetReferenceUrl Method

Sets URL from which metadata for a Windows Communication Foundation (WCF) service reference is downloaded.

Namespace:  Microsoft.VisualStudio.WCFReference.Interop
Assembly:  Microsoft.VisualStudio.WCFReference.Interop (in Microsoft.VisualStudio.WCFReference.Interop.dll)

Syntax

'Déclaration
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
)

Parameters

  • index
    Type: System.Int32
    An Integer that contains the index of the service reference.
  • pszReferenceUrl
    Type: System.String
    A string that contains the URL.

Remarks

When the VSHPROPID_ServiceReferenceSupported property of the client project is false or the property is not supported, the method fails.

.NET Framework Security

See Also

Reference

IVsWCFReferenceGroup Interface

Microsoft.VisualStudio.WCFReference.Interop Namespace