Share via


IDebugCoreServer3::GetServerName

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Retrieves the name of the server.

Syntax

HRESULT GetServerName(
   BSTR* pbstrName
);
int GetServerName(
   out string pbstrName
);

Parameters

pbstrName
[out] Returns the name of the server.

Note

The caller is responsible for freeing the string.

Return Value

If successful, returns S_OK; otherwise, returns error code.

Remarks

For a friendly server name, call the GetServerFriendlyName method.

See also