共用方式為


IVsWCFReferenceGroup.SetName(String) Method

Definition

Sets the name of a .svcmap file for a Windows Communication Foundation (WCF) service reference group.

public:
 void SetName(System::String ^ pszName);
public:
 void SetName(Platform::String ^ pszName);
void SetName(std::wstring const & pszName);
public void SetName (string pszName);
abstract member SetName : string -> unit
Public Sub SetName (pszName As String)

Parameters

pszName
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.

Applies to