다음을 통해 공유


IVsSccManager2.GetSccGlyphFromStatus Method

This function determines which glyph to display, given a combination of status flags.

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

Syntax

‘선언
Function GetSccGlyphFromStatus ( _
    dwSccStatus As UInteger, _
    <OutAttribute> psiGlyph As VsStateIcon() _
) As Integer
‘사용 방법
Dim instance As IVsSccManager2
Dim dwSccStatus As UInteger
Dim psiGlyph As VsStateIcon()
Dim returnValue As Integer

returnValue = instance.GetSccGlyphFromStatus(dwSccStatus, _
    psiGlyph)
int GetSccGlyphFromStatus(
    uint dwSccStatus,
    VsStateIcon[] psiGlyph
)
int GetSccGlyphFromStatus(
    [InAttribute] unsigned int dwSccStatus, 
    [OutAttribute] array<VsStateIcon>^ psiGlyph
)
abstract GetSccGlyphFromStatus : 
        dwSccStatus:uint32 * 
        psiGlyph:VsStateIcon[] byref -> int 
function GetSccGlyphFromStatus(
    dwSccStatus : uint, 
    psiGlyph : VsStateIcon[]
) : int

Parameters

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

참고

If this method returns S_OK, it must set psiGlyph to a VsStateIcon value other than STATEICON_NOSTATEICON (which is always considered an invalid icon index).

Remarks

COM Signature

From ivssccmanager2.idl

HRESULT GetSccGlyphFromStatus(
   [in] DWORD dwSccStatus,
   [out, retval] VsStateIcon *psiGlyph
);

Projects should not cache source control status for files in order to use this method on a regular basis. Instead, a project should use the GetSccGlyph method at the time the glyph is needed.

.NET Framework Security

See Also

Reference

IVsSccManager2 Interface

IVsSccManager2 Members

Microsoft.VisualStudio.Shell.Interop Namespace