[This is preliminary documentation and is subject to change.]
Get a list of Perforce protection entries for the passed-in file specs
Namespace: Perforce.P4Assembly: p4api.net (in p4api.net.dll) Version: 2012.2.63.1250 (2012.2.63.1250)
Syntax
C# |
---|
public IList<ProtectionEntry> GetProtectionEntries( IList<FileSpec> filespecs, Options options ) |
Visual Basic |
---|
Public Function GetProtectionEntries ( _ filespecs As IList(Of FileSpec), _ options As Options _ ) As IList(Of ProtectionEntry) |
Visual C++ |
---|
public: IList<ProtectionEntry^>^ GetProtectionEntries( IList<FileSpec^>^ filespecs, Options^ options ) |
Parameters
- filespecs
- Type: System.Collections.Generic..::..IList<(Of <(<'FileSpec>)>)>
- options
- Type: Perforce.P4..::..Options
Return Value
Remarks
p4 help protects
protects -- Display protections defined for a specified user and path
p4 protects [-a | -g group | -u user] [-h host] [-m] [file ...]
'p4 protects' displays the lines from the protections table that
apply to the current user. The protections table is managed using
the 'p4 protect' command.
If the -a flag is specified, protection lines for all users are
displayed. If the -g group flag or -u user flag is specified,
protection lines for that group or user are displayed.
If the -h host flag is specified, the protection lines that apply
to the specified host (IP address) are displayed.
If the -m flag is given, a single word summary of the maximum
access level is reported. Note that this summary does not take
exclusions into account.
If the file argument is specified, protection lines that apply to
the specified files are displayed.
The -a/-g/-u flags require 'super' access granted by 'p4 protect'.