<htmlxmlns:MSHelp="http://msdn.microsoft.com/mshelp"xmlns:mshelp="http://msdn.microsoft.com/mshelp"xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5"xmlns:xlink="http://www.w3.org/1999/xlink"xmlns:msxsl="urn:schemas-microsoft-com:xslt"><head><METAHTTP-EQUIV="Content-Type"CONTENT="text/html; charset=UTF-8"/><METANAME="save"CONTENT="history"/><title>P4Form Class</title><linkrel="stylesheet"type="text/css"href="../styles/presentation.css"/><linkrel="stylesheet"type="text/css"href="ms-help://Hx/HxRuntime/HxLink.css"/><scripttype="text/javascript"src="../scripts/EventUtilities.js"></script><scripttype="text/javascript"src="../scripts/SplitScreen.js"></script><scripttype="text/javascript"src="../scripts/Dropdown.js"></script><scripttype="text/javascript"src="../scripts/script_loc.js"></script><scripttype="text/javascript"src="../scripts/script_manifold.js"></script><scripttype="text/javascript"src="../scripts/script_feedBack.js"></script><scripttype="text/javascript"src="../scripts/CheckboxMenu.js"></script><scripttype="text/javascript"src="../scripts/CommonUtilities.js"></script><metaname="container"content="p4api"/><metaname="file"content="T_P4API_P4Form"/><metaname="guid"content="T_P4API_P4Form"/><xml><MSHelp:TOCTitleTitle="P4Form Class"/><MSHelp:RLTitleTitle="P4Form Class (P4API)"/><MSHelp:AttrName="AssetID"Value="T:P4API.P4Form"/><MSHelp:KeywordIndex="A"Term="T:P4API.P4Form"/><MSHelp:KeywordIndex="A"Term="frlrfP4APIP4FormClassTopic"/><MSHelp:KeywordIndex="K"Term="P4Form class"/><MSHelp:KeywordIndex="K"Term="P4API.P4Form class"/><MSHelp:KeywordIndex="K"Term="P4Form class, about P4Form class"/><MSHelp:KeywordIndex="F"Term="P4Form"/><MSHelp:KeywordIndex="F"Term="P4API.P4Form"/><MSHelp:AttrName="HelpPriority"Value="2"/><MSHelp:AttrName="APIType"Value="Managed"/><MSHelp:AttrName="APILocation"Value="p4api.dll"/><MSHelp:AttrName="APIName"Value="P4API.P4Form"/><MSHelp:AttrName="DevLang"Value="CSharp"/><MSHelp:AttrName="Locale"Value="en-us"/><MSHelp:AttrName="TopicType"Value="kbSyntax"/><MSHelp:AttrName="TopicType"Value="apiref"/><MSHelp:AttrName="Abstract"Value="Represents a Perforce 'Form' object."/></xml><linktype="text/css"rel="stylesheet"href="../styles/highlight.css"/><scripttype="text/javascript"src="../scripts/highlight.js"></script></head><body><inputtype="hidden"id="userDataCache"class="userDataStyle"/><inputtype="hidden"id="hiddenScrollOffset"/><imgid="collapseImage"style="display:none; height:0; width:0;"src="../icons/collapse_all.gif"title="Collapse image"/><imgid="expandImage"style="display:none; height:0; width:0;"src="../icons/expand_all.gif"title="Expand Image"/><imgid="collapseAllImage"style="display:none; height:0; width:0;"src="../icons/collapse_all.gif"/><imgid="expandAllImage"style="display:none; height:0; width:0;"src="../icons/expand_all.gif"/><imgid="dropDownImage"style="display:none; height:0; width:0;"src="../icons/dropdown.gif"/><imgid="dropDownHoverImage"style="display:none; height:0; width:0;"src="../icons/dropdownHover.gif"/><imgid="copyImage"style="display:none; height:0; width:0;"src="../icons/copycode.gif"title="Copy image"/><imgid="copyHoverImage"style="display:none; height:0; width:0;"src="../icons/copycodeHighlight.gif"title="CopyHover image"/><divid="header"><tableid="topTable"cellspacing="0"cellpadding="0"><tr><td><spanonclick="ExpandCollapseAll(toggleAllImage)"style="cursor:default;"onkeypress="ExpandCollapseAll_CheckKey(toggleAllImage, event)"tabindex="0"><imgID="toggleAllImage"class="toggleAll"src="../icons/collapse_all.gif"/><labelid="collapseAllLabel"for="toggleAllImage"style="display: none;">Collapse All</label><labelid="expandAllLabel"for="toggleAllImage"style="display: none;">Expand All</label></span></td></tr></table><divid="devlangsMenu"><inputid="CSharpCheckbox"type="checkbox"data="CSharp,cs,'persist'"value="on"onClick="SetLanguage(this)"/><labelclass="checkboxLabel"for="CSharpCheckbox">C#</label><br/></div><tableid="bottomTable"cellpadding="0"cellspacing="0"><trid="headerTableRow1"><tdalign="left"><spanid="runningHeaderText">P4.Net -- Managed API for Perforce</span></td></tr><trid="headerTableRow2"><tdalign="left"><spanid="nsrTitle">P4Form Class</span></td></tr><trid="headerTableRow3"><tdalign="left"><ahref="AllMembers_T_P4API_P4Form.htm">Members</a><ahref="#exampleToggle"onclick="OpenSection(exampleToggle)">Example</a><ahref="#seeAlsoToggle"onclick="OpenSection(seeAlsoToggle)">See Also</a><spanid="headfb"class="feedbackhead"/></td></tr></table><tableid="gradientTable"><tr><tdclass="nsrBottom"background="../icons/gradient.gif"/></tr></table></div><divid="mainSection"><divid="mainBody"><divid="allHistory"class="saveHistory"onsave="saveAll()"onload="loadAll()"><spanstyle="color:DarkGray"></span></div><divclass="summary">
Represents a Perforce 'Form' object.
</div><p/>
<b>Namespace:</b>
<ahref="N_P4API.htm">P4API</a><br/>
<b>Assembly:</b>
p4api (in p4api)<br/><b>Version:</b> 1.0.0.0 (1.0.0)<h1class="heading"><spanonclick="ExpandCollapse(syntaxToggle)"style="cursor:default;"onkeypress="ExpandCollapse_CheckKey(syntaxToggle, event)"tabindex="0"><imgid="syntaxToggle"onload="OnLoadImage(event)"class="toggle"name="toggleSwitch"src="../icons/collapse_all.gif"/>Syntax</span></h1><divid="syntaxSection"class="section"name="collapseableSection"style=""><divid="syntaxCodeBlocks"class="code"><spancodeLanguage="CSharp"><table><tr><th>C#</th></tr><tr><td><prexml:space="preserve"><spanclass="keyword">public</span><spanclass="keyword">class</span><spanclass="identifier">P4Form</span> : <ahref="T_P4API_P4Record.htm">P4Record</a></pre></td></tr></table></span></div></div><h1class="heading"><spanonclick="ExpandCollapse(remarksToggle)"style="cursor:default;"onkeypress="ExpandCollapse_CheckKey(remarksToggle, event)"tabindex="0"><imgid="remarksToggle"onload="OnLoadImage(event)"class="toggle"name="toggleSwitch"src="../icons/collapse_all.gif"/>Remarks</span></h1><divid="remarksSection"class="section"name="collapseableSection"style="">
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:<li>client</li><li>branch</li><li>label</li><li>job</li><li>user</li><li>group</li><li>protect</li><li>triggers</li><li>branch</li>
When fetching or saving a form, do not use the '-o' and '-i' flags. P4.Net will automatically include them.