Unlock command options.

Namespace: Perforce.P4
Assembly: p4api.net (in p4api.net.dll) Version: 2015.1.103.4687 (2015.1.103.4687)

Syntax

C#
public Options(
	UnlockFilesCmdFlags flags,
	int changelistId
)
Visual Basic
Public Sub New ( _
	flags As UnlockFilesCmdFlags, _
	changelistId As Integer _
)
Visual C++
public:
Options(
	UnlockFilesCmdFlags flags, 
	int changelistId
)

Parameters

flags
Type: Perforce.P4..::..UnlockFilesCmdFlags
changelistId
Type: System..::..Int32

Return Value

Remarks


p4 help unlock

unlock -- Release a locked file, leaving it open

p4 unlock [-c changelist#] [-f] [file ...]

'p4 unlock' releases locks on the specified files, which must be
open in the specified pending changelist. If you omit the changelist
number, the default changelist is assumed. If you omit the file name,
all locked files are unlocked.

By default, files can be unlocked only by the changelist owner. The
-f flag enables you to unlock files in changelists owned by other
users. The -f flag requires 'admin' access, which is granted by 'p4
protect'.

See Also