Returns a description for this colorable item.
Namespace: Microsoft.VisualStudio.Package
Assembly: Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'宣言
Public Overridable Function GetDescription ( _
<OutAttribute> ByRef desc As String _
) As Integer
'使用
Dim instance As ColorableItem
Dim desc As String
Dim returnValue As Integer
returnValue = instance.GetDescription(desc)
public virtual int GetDescription(
out string desc
)
public:
virtual int GetDescription(
[OutAttribute] String^% desc
)
public function GetDescription(
desc : String
) : int
Parameters
desc
Type: System.String%[out] A string containing a description.
Return Value
Type: System.Int32
If successful, returns S_OK; otherwise, returns an error code.
Implements
IVsMergeableUIItem.GetDescription(String%)
Remarks
This method is an implementation of the GetDescription method in the IVsMergeableUIItem interface.
The base method returns a null value for the description (the core text editor does not use this value) and a success code of E_NOTIMPL.
Permissions
- 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.