RepositoryGetFormSpec Method
|
Get a FormSpec of the specified form type.
Namespace:
Perforce.P4
Assembly:
p4api.net (in p4api.net.dll) Version: 2024.1.265.5426
Syntax public FormSpec GetFormSpec(
Options options,
string spectype
)
Public Function GetFormSpec (
options As Options,
spectype As String
) As FormSpec
public:
FormSpec^ GetFormSpec(
Options^ options,
String^ spectype
)
member GetFormSpec :
options : Options *
spectype : string -> FormSpec
Parameters
- options
- Type: Perforce.P4Options
- spectype
- Type: SystemString
Return Value
Type:
FormSpecRemarks
p4 help spec
spec -- Edit spec comments and formatting hints (unsupported)
p4 spec [-d -i -o] type
Edit any type of specification: branch, change, client, depot,
group, job, label, spec, stream, triggers, typemap, or user. Only
the comments and the formatting hints can be changed. Any fields
that you add during editing are discarded when the spec is saved.
'p4 jobspec' is equivalent to 'p4 spec job', and any custom spec
(including the job spec) can be deleted with 'p4 spec -d type'.
Examples
To get the FormSpec for changelist:
Options ops = new Options();
ops["-o"] = null;
FormSpec target = Repository.GetFormSpec(ops, "change");
To get the FormSpec for client:
Options ops = new Options();
ops["-o"] = null;
FormSpec target = Repository.GetFormSpec(ops, "clinet");
To get the FormSpec for user:
Options ops = new Options();
ops["-o"] = null;
FormSpec target = Repository.GetFormSpec(ops, "user");
See Also