Compartir a través de


VsColors.TryGetColorIDFromBaseKey Method

Attempts to get the color ID from the base key.

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

Syntax

'Declaration
Public Shared Function TryGetColorIDFromBaseKey ( _
    baseKey As String, _
    <OutAttribute> ByRef vsSysColor As Integer _
) As Boolean
public static bool TryGetColorIDFromBaseKey(
    string baseKey,
    out int vsSysColor
)
public:
static bool TryGetColorIDFromBaseKey(
    String^ baseKey, 
    [OutAttribute] int% vsSysColor
)
static member TryGetColorIDFromBaseKey : 
        baseKey:string * 
        vsSysColor:int byref -> bool
public static function TryGetColorIDFromBaseKey(
    baseKey : String, 
    vsSysColor : int
) : boolean

Parameters

  • baseKey
    Type: String

    The base key.

  • vsSysColor
    Type: Int32%

    [out] The color ID.

Return Value

Type: Boolean
VSConstants.S_OK, or a failure code.

.NET Framework Security

See Also

Reference

VsColors Class

Microsoft.VisualStudio.Shell Namespace