共用方式為


IVersionControlProvider.QueryCommandStatus 方法

命名空間:  Microsoft.VisualStudio.TeamFoundation.VersionControl
組件:  Microsoft.VisualStudio.TeamFoundation.VersionControl (在 Microsoft.VisualStudio.TeamFoundation.VersionControl.dll 中)

語法

'宣告
Function QueryCommandStatus ( _
    command As VersionControlCommand, _
    <OutAttribute> ByRef isSupported As Boolean, _
    <OutAttribute> ByRef isEnabled As Boolean, _
    <OutAttribute> ByRef isInvisible As Boolean _
) As Integer
int QueryCommandStatus(
    VersionControlCommand command,
    out bool isSupported,
    out bool isEnabled,
    out bool isInvisible
)

參數

傳回值

類型:System.Int32
傳回 Int32

.NET Framework 安全性

請參閱

參考

IVersionControlProvider 介面

Microsoft.VisualStudio.TeamFoundation.VersionControl 命名空間