IVsFontAndColorDefaults.GetCategoryName(String) 方法

定义

返回显示项类别的显示名称。

public:
 int GetCategoryName([Runtime::InteropServices::Out] System::String ^ % pbstrName);
int GetCategoryName([Runtime::InteropServices::Out] std::wstring const & & pbstrName);
public int GetCategoryName (out string pbstrName);
abstract member GetCategoryName : string -> int
Public Function GetCategoryName (ByRef pbstrName As String) As Integer

参数

pbstrName
String

弄指向包含显示项类别名称的字符串的指针。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

COM 签名

从 vsshell:

HRESULT IVsFontAndColorDefaults::GetCategoryName(  
   [out] BSTR *pbstrName  
);  

中提供的名称 pbstrName 将显示在 " 字体和颜色 " 页上。 由于此名称向用户显示,因此必须对其进行本地化。

适用于