IVsPerPropertyBrowsing.GetLocalizedPropertyInfo 方法

定义

检索属性的本地化名称和说明。

public:
 int GetLocalizedPropertyInfo(int dispid, System::UInt32 localeID, [Runtime::InteropServices::Out] System::String ^ % pbstrLocalizedName, [Runtime::InteropServices::Out] System::String ^ % pbstrLocalizeDescription);
int GetLocalizedPropertyInfo(int dispid, unsigned int localeID, [Runtime::InteropServices::Out] std::wstring const & & pbstrLocalizedName, [Runtime::InteropServices::Out] std::wstring const & & pbstrLocalizeDescription);
public int GetLocalizedPropertyInfo (int dispid, uint localeID, out string pbstrLocalizedName, out string pbstrLocalizeDescription);
abstract member GetLocalizedPropertyInfo : int * uint32 * string * string -> int
Public Function GetLocalizedPropertyInfo (dispid As Integer, localeID As UInteger, ByRef pbstrLocalizedName As String, ByRef pbstrLocalizeDescription As String) As Integer

参数

dispid
Int32

中指定调度 ID。

localeID
UInt32

中指定 localeID。

pbstrLocalizedName
String

弄指向包含本地化名称的字符串的指针。

pbstrLocalizeDescription
String

弄指向包含本地化说明的字符串的指针。

返回

Int32

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

注解

COM 签名

从 vsshell:

HRESULT IVsPerPropertyBrowsing::GetLocalizedPropertyInfo(  
   DISPID dispid, LCID localeID,  
   [out]BSTR* pbstrLocalizedName,  
   [out]BSTR* pbstrLocalizeDescription  
);  

检索所选对象的属性的本地化名称和说明。 返回非 S_OK 返回代码将显示默认值。 实现者必须处理其中一个或两个 BSTR * 值的大小写 null

适用于