IVsWCFReferenceGroup.AddReference Method
Adds a Windows Communication Foundation (WCF) service reference to a reference group.
Namespace: Microsoft.VisualStudio.WCFReference.Interop
Assembly: Microsoft.VisualStudio.WCFReference.Interop (in Microsoft.VisualStudio.WCFReference.Interop.dll)
Syntax
'Declaration
Sub AddReference ( _
pDiscoverySession As IDiscoverySession, _
pszUrl As String _
)
void AddReference(
IDiscoverySession pDiscoverySession,
string pszUrl
)
void AddReference(
[InAttribute] IDiscoverySession^ pDiscoverySession,
[InAttribute] String^ pszUrl
)
abstract AddReference :
pDiscoverySession:IDiscoverySession *
pszUrl:string -> unit
function AddReference(
pDiscoverySession : IDiscoverySession,
pszUrl : String
)
Parameters
pDiscoverySession
Type: Microsoft.VisualStudio.Shell.Interop.IDiscoverySessionThe IDiscoverySession to use. Can be Null.
pszUrl
Type: System.StringA String that contains the URL for the service.
Remarks
When the VSHPROPID_ServiceReferenceSupported property of the client project is false or the property is not supported, the AddReference method fails.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.