Perforce API for the .Net CLR P4.Net

P4Record Class

P4Record is a dictionary-like object that provides a means of interpreting Perforce results.

For a list of all members of this type, see P4Record Members.

System.Object
   P4API.P4Record
      P4API.P4Form

[Visual Basic]
Public Class P4Record
[C#]
public class P4Record

Remarks

The Perforce api provides "parsed" output in the form of key-value pairs. Keys are always strings (case sensitive). From the raw api, the values come in 3 flavors:

  • Simple strings.
  • List of strings.
  • Sparse multi-demensional list of strings.
  • P4.Net does not yet handle the third type (which only comes from certain output of p4 filelog).

    To access simple string values by key, use the Fields property (or the default indexer).

    To access lists of strings by key, use the ArrayFields property.

    Requirements

    Namespace: P4API

    Assembly: p4api (in p4api.dll)

    See Also

    P4Record Members | P4API Namespace