[This is preliminary documentation and is subject to change.]

The P4Server type exposes the following members.

Constructors

  Name Description
Public method P4Server(String, String, String, String)
Create a P4BridgeServer used to connect to the specified P4Server
Public method P4Server(String, String, String, String, String, String)
Create a P4BridgeServer used to connect to the specified P4Server

Methods

  Name Description
Public method CancelCommand
Cancel a running command
Public method Close
Close the connection to a P4 Server
Public method Dispose()()()()
For IDispose
Public method Dispose(Boolean)
Releases the unmanaged resources used by the P4Server and optionally releases the managed resources
Public method EchoCommand(String)
Broadcast a string on the CommandEcho event
Public method EchoCommand(String, StringList)
Broadcast a the command line (cmd and args) on the CommandEcho event
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
Finalizer
(Overrides Object..::..Finalize()()()().)
Public method GetBinaryResults
Get the complete binary results for the last command
Public method GetErrorResults
Get a list of errors (if any) generated by a command
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetInfoResults
Get the information messages generated by the previous command
Public method GetTaggedOutput
Get the tagged output generated by a command
Public method GetTextResults
Get the complete text results for the last command
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method Login
Run a login command on the server
Public method Logout
Run a logout command on the server
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method Reconnect
Reconnect to the server in the event the connection is lost
Public method RunCommand
Run a P4 command on the P4 Server
Public method SetConnectionData
The parameters used by the connection
Public method ToString
Returns a String that represents the current Object.
(Inherited from Object.)

Fields

  Name Description
Public field PromptHandler
Delegate used to process prompts for input from the server.
Public field ResolveAHandler
Delegate used to provide a custom handler for Resolve callbacks passing a ClientResolve object from the p4api.
Public field ResolveHandler
Delegate used to provide a custom handler for Resolve callbacks passing a ClientMerge object from the p4api.
Public field RunCmdTimout
Maximum time for a command to run before timing out;

Properties

  Name Description
Public property ApiLevel
What API level does the server support
Public property CharacterSet
The character set used by the connection
Public property Client
The client workspace used by the connection
Public property Config
The config file used by the connection
Public property ConnectionError
Get the error message generated by the previous connection (if any) from the bridge dll.
Public property Static member ConnectionErrorInt
Get the error message generated by the previous connection (if any)
Public property CurrentWorkingDirectory
The current working directory (cwd) used by the p4 server
Public property DataSet
The data set for use by a command
Public property ErrorList
The errors (if any) of the command execution
Public property LastResults
The results of the last command executed
Public property Password
The user's password used by the connection
Public property Port
The hostname:port used by the connection
Public property ProgramName
The program name used by the connection
Public property ProgramVersion
The program version used by the connection
Public property ReqiresLogin
The server requires a client to use the login command to pass credentials.
Public property User
The user name used by the connection
Public property UseUnicode
Need to use Unicode when marshalling to/from the P4 server
Public property Static member Version
Get the version of the p4.net assembly

Events

  Name Description
Public event BinaryResultsReceived
Broadcast event for binary data
Public event CommandEcho
Broadcast event for text results
Public event ErrorReceived
Broadcast errors received
Public event InfoResultsReceived
Broadcast event for info results
Public event TaggedOutputReceived
Event to broadcast tagged output
Public event TextResultsReceived
Broadcast event for text results

See Also