다음을 통해 공유


IVsPerPropertyBrowsing.GetLocalizedPropertyInfo Method

Retrieves the localized name and description for a property.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

‘선언
Function GetLocalizedPropertyInfo ( _
    dispid As Integer, _
    localeID As UInteger, _
    <OutAttribute> ByRef pbstrLocalizedName As String, _
    <OutAttribute> ByRef pbstrLocalizeDescription As String _
) As Integer
‘사용 방법
Dim instance As IVsPerPropertyBrowsing
Dim dispid As Integer
Dim localeID As UInteger
Dim pbstrLocalizedName As String
Dim pbstrLocalizeDescription As String
Dim returnValue As Integer

returnValue = instance.GetLocalizedPropertyInfo(dispid, _
    localeID, pbstrLocalizedName, pbstrLocalizeDescription)
int GetLocalizedPropertyInfo(
    int dispid,
    uint localeID,
    out string pbstrLocalizedName,
    out string pbstrLocalizeDescription
)
int GetLocalizedPropertyInfo(
    int dispid, 
    unsigned int localeID, 
    [OutAttribute] String^% pbstrLocalizedName, 
    [OutAttribute] String^% pbstrLocalizeDescription
)
function GetLocalizedPropertyInfo(
    dispid : int, 
    localeID : uint, 
    pbstrLocalizedName : String, 
    pbstrLocalizeDescription : String
) : int

Parameters

  • pbstrLocalizedName
    Type: System.String%

    [out] Pointer to a string containing the localized name.

  • pbstrLocalizeDescription
    Type: System.String%

    [out] Pointer to a string containing the localize description.

Return Value

Type: System.Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

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

Retrieves the localized name and description for a property of the selected object. Returning a non-S_OK return code will display the default values. Implementers must handle the case of one or both BSTR* values being nulla null reference (Nothing in Visual Basic).

Permissions

See Also

Reference

IVsPerPropertyBrowsing Interface

IVsPerPropertyBrowsing Members

Microsoft.VisualStudio.Shell.Interop Namespace