WorkspaceObject.CanDoSourceControlCommand

Syntax

WorkspaceObject.CanDoSourceControlCommand( scCommand, options = 0, [itemList])

Return Value

Boolean

Returns True if the command is supported.

Purpose

Indicates if the provider supports the specified source code control command for the specified files.

Remarks

Call this function to determine whether you can call the WorkspaceObject.DoSourceControlCommand method on the selected files.

Parameters

scCommand As SourceControlCommands

[In] Specifies the command to check.

options As Long

[In] Specifies one or more of the SourceControlCommandOptions constants.

This parameter has a default value of 0 .

itemList As Variant

[In] [ Optional ] Specifies an array of WorkspaceObjects that specifies the selected files. If you omit this argument, the method uses the file associated with this WorkspaceObject.

See Also

Omitting Optional Parameters

SourceControlCommandOptions

WorkspaceObject.DoSourceControlCommand

WorkspaceObject.SourceControlStatus