다음을 통해 공유


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

'Declaration
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
)
int GetLocalizedPropertyInfo(
    int dispid, 
    unsigned int localeID, 
    [OutAttribute] String^% pbstrLocalizedName, 
    [OutAttribute] String^% pbstrLocalizeDescription
)
abstract GetLocalizedPropertyInfo : 
        dispid:int * 
        localeID:uint32 * 
        pbstrLocalizedName:string byref * 
        pbstrLocalizeDescription:string byref -> int
function GetLocalizedPropertyInfo(
    dispid : int, 
    localeID : uint, 
    pbstrLocalizedName : String, 
    pbstrLocalizeDescription : String
) : int

Parameters

  • dispid
    Type: Int32

    [in] Specifies dispatch ID.

  • localeID
    Type: UInt32

    [in] Specifies localeID.

  • pbstrLocalizedName
    Type: String%

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

  • pbstrLocalizeDescription
    Type: String%

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

Return Value

Type: 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).

.NET Framework Security

See Also

Reference

IVsPerPropertyBrowsing Interface

Microsoft.VisualStudio.Shell.Interop Namespace