IVsWCFReferenceGroup.SetName Method

Sets the name of a .svcmap file 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

声明
Sub SetName ( _
    pszName As String _
)
void SetName(
    string pszName
)
void SetName(
    [InAttribute] String^ pszName
)
abstract SetName : 
        pszName:string -> unit 
function SetName(
    pszName : String
)

Parameters

  • pszName
    Type: String
    A string that contains the name for the file without the extension.

Remarks

Changing the name only changes the name of the .svcmap file, not the reference group.

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