Partager via


ColorableItem.GetDisplayName Method

Returns the name of this colorable item.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)

Syntax

'Declaration
Public Overridable Function GetDisplayName ( _
    <OutAttribute> ByRef name As String _
) As Integer
public virtual int GetDisplayName(
    out string name
)
public:
virtual int GetDisplayName(
    [OutAttribute] String^% name
)
abstract GetDisplayName : 
        name:string byref -> int  
override GetDisplayName : 
        name:string byref -> int
public function GetDisplayName(
    name : String
) : int

Parameters

  • name
    Type: String%

    [out] The name of the colorable item.

Return Value

Type: Int32
If successful, returns S_OK; otherwise, returns an error code.

Implements

IVsColorableItem.GetDisplayName(String%)
IVsMergeableUIItem.GetDisplayName(String%)

Remarks

The name returned is the one passed to the constructor as the display name.

The base method always returns S_OK.

.NET Framework Security

See Also

Reference

ColorableItem Class

Microsoft.VisualStudio.Package Namespace