Perforce API for the .Net CLR P4.Net

P4Connection.Save_Form Method (P4Form)

Saves the form to Perforce.

[Visual Basic]
Overloads Public Function Save_Form( _
   ByVal Form As P4Form _
) As P4UnParsedRecordSet
[C#]
public P4UnParsedRecordSet Save_Form(
   P4Form Form
);

Parameters

Form
The P4Form object retrieved from Fetch_Form.

Return Value

P4UnParsedRecordSet. Output can be parsed to verify the form was processed correctly.

Remarks

Forms are the things that pop-up in an editor when run from a command line. In P4.Net (and most other Perforce APIs), you do not need to parse/format the text manually. Instead, you can get/set the fields using the Fields and ArrayFields collections.

The following is a list of common form commands:

  • client
  • branch
  • label
  • job
  • user
  • group
  • protect
  • triggers
  • branch
  • When fetching or saving a form, do not use the '-o' and '-i' flags. P4.Net will automatically include them.

    See Also

    P4Connection Class | P4API Namespace | P4Connection.Save_Form Overload List