检索本地化名称和说明的属性。
命名空间: Microsoft.VisualStudio.Shell.Interop
程序集: Microsoft.VisualStudio.Shell.Interop(在 Microsoft.VisualStudio.Shell.Interop.dll 中)
语法
声明
Function GetLocalizedPropertyInfo ( _
dispid As Integer, _
localeID As UInteger, _
<OutAttribute> ByRef pbstrLocalizedName As String, _
<OutAttribute> ByRef pbstrLocalizeDescription As String _
) As Integer
int GetLocalizedPropertyInfo(
int dispid,
uint localeID,
out string pbstrLocalizedName,
out string pbstrLocalizeDescription
)
参数
- dispid
类型:System.Int32
[in] 指定调度 ID.
- localeID
类型:System.UInt32
[in] 指定 localeID。
- pbstrLocalizedName
类型:System.String%
[out] 对包含本地化名称的字符串的指针。
- pbstrLocalizeDescription
类型:System.String%
[out] 对包含本地化声明的字符串的指针。
返回值
类型:System.Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。
备注
COM 签名
从 vsshell.idl:
HRESULT IVsPerPropertyBrowsing::GetLocalizedPropertyInfo(
DISPID dispid, LCID localeID,
[out]BSTR* pbstrLocalizedName,
[out]BSTR* pbstrLocalizeDescription
);
检索本地化名称和说明的选定对象的属性。返回 non-S_OK 返回代码将显示默认值。实现必须处理是用例一个或两个 BSTR* 的值 nullnull 引用(在 Visual Basic 中为 Nothing)。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。