Perforce API for the .Net CLR P4.Net

P4Connection Members

P4Connection overview

Public Instance Constructors

P4Connection Constructor Initializes a new instance of the P4Connection class.

Public Instance Properties

Api Sets the client API protocol level.
CallingProgram Get/Sets the name of the calling program.
CallingVersion Gets/Sets the version of the calling program's version.
Charset Gets/Sets the client character set.
Client Gets/Sets the client workspace.
CWD Gets/Sets the current working directory.
ExceptionLevel Gets/Sets the Exception level when running Perforce commands.
Host Gets/Sets the Host-name of the client.
Language Sets the Language for message translations.
MaxLockTime Gets/Sets a value that overrides the defined MaxLockTime.
MaxResults Gets/Sets a value that overrides the defined MaxResults.
MaxScanRows Gets/Sets a value that overrides the defined MaxScanRows.
Password Sets the password to conenct with.
Port Gets/Sets the Perforce Server port.
ServerLevel Checks the server level (version) of the Perforce server.
TicketFile Sets the ticket file used for Authentication.
User Gets/Sets the User login used to connect to Perforce.

Public Instance Methods

Connect Connect to the Perforce server
ConvertDateOverloaded. Converts Perforce date (integer) to .Net DateTime.
CreatePendingChangelist Creates a new pending changelist.
Disconnect Disconnect from the Perforce Server
Dispose Calls Disconnect.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
Fetch_Form Fetch a form object from Perforce.
GetHashCode (inherited from Object)Serves as a hash function for a particular type.
GetType (inherited from Object)Gets the Type of the current instance.
IsServerCaseSensitive Checks the case-sensitivity of the Perforce server.
IsValidConnection Determines if the Perforce connection is valid.
Login Login to the Perforce Server
Parse_Form Parse the raw text of a Perforce form into a P4Form object
PrintBinary Print the contents of a file in Perforce to a byte array.
PrintStreamOverloaded. Prints the contents of a Perforce file to a Stream.
PrintStreamEvents Runs a print command, and raises events for each file printed.
PrintText Print the contents of a file in Perforce to a string.
Run Executes a Perforce command in tagged mode.
RunCallback Runs the specified command, calling the appropriate callback methods as Perforce returns information.
RunCallbackUnparsed Runs the callback unparsed.
RunUnParsed Executes a Perforce command in non-tagged mode.
Save_FormOverloaded. Saves the form to Perforce.
ToString (inherited from Object)Returns a String that represents the current Object.

Public Instance Events

OnPrintEndFile Raised from P4PrintStreamEvents after a file is printed.
OnPrintStream Raised from P4PrintStreamEvents before a file is printed.
OnPrompt Raised when Perforce is prompting for a response.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

P4Connection Class | P4API Namespace