Share via


IVsWCFReferenceGroup.SetNamespace Method

Sets the namespace for a Windows Communication Foundation (WCF) service reference group.

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

Syntax

'Declaration
Sub SetNamespace ( _
    pszNamespace As String _
)
void SetNamespace(
    string pszNamespace
)
void SetNamespace(
    [InAttribute] String^ pszNamespace
)
abstract SetNamespace : 
        pszNamespace:string -> unit
function SetNamespace(
    pszNamespace : String
)

Parameters

  • pszNamespace
    Type: System.String

    A string that contains the namespace.

Remarks

Changing the namespace of the reference group changes the name of the directory or moves the metadata to another location in the file system.

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