共用方式為


IVsWCFReferenceGroupCollection.Add Method

Adds a Windows Communication Foundation (WCF) reference group to the collection.

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

Syntax

'宣告
Function Add ( _
    pszNamespace As String, _
    pszName As String _
) As IVsWCFReferenceGroup
IVsWCFReferenceGroup Add(
    string pszNamespace,
    string pszName
)
IVsWCFReferenceGroup^ Add(
    [InAttribute] String^ pszNamespace, 
    [InAttribute] String^ pszName
)
abstract Add : 
        pszNamespace:string * 
        pszName:string -> IVsWCFReferenceGroup 
function Add(
    pszNamespace : String, 
    pszName : String
) : IVsWCFReferenceGroup

Parameters

  • pszNamespace
    Type: String
    A string that contains the namespace for the reference group.
  • pszName
    Type: String
    A string that contains the name of the reference group.

Return Value

Type: Microsoft.VisualStudio.WCFReference.Interop.IVsWCFReferenceGroup
A WCF reference group.

Remarks

If the VSHPROPID_ServiceReferenceSupported property of the project is false or the property is not supported, this method fails.

.NET Framework Security

See Also

Reference

IVsWCFReferenceGroupCollection Interface

Microsoft.VisualStudio.WCFReference.Interop Namespace