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

Syntax

C#
public IList<FileSpec> UnlockFiles(
	Options options,
	params FileSpec[] files
)
Visual Basic
Public Function UnlockFiles ( _
	options As Options, _
	ParamArray files As FileSpec() _
) As IList(Of FileSpec)
Visual C++
public:
IList<FileSpec^>^ UnlockFiles(
	Options^ options, 
	... array<FileSpec^>^ files
)

Parameters

options
Type: Perforce.P4..::..Options
files
Type: array<Perforce.P4..::..FileSpec>[]()[][]

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