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
)
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: System.Int32
[in] Specifies dispatch ID.
- localeID
Type: System.UInt32
[in] Specifies localeID.
- 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).
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IVsPerPropertyBrowsing Interface