The Connection type exposes the following members.

Constructors

  Name Description
Public method Connection
Construct a Connection given a Server

Methods

  Name Description
Public method CancelCommand(UInt32)
Cancel a running command
Public method CancelCommand(P4Command)
Cancel a running command
Public method Connect
Connect to the server with the given options
Public method connectionEstablished
returns true is the connection has been made
Public method CreateCommand
Create a P4Command that can be run on the connection
Public method Disconnect()()()()
Disconnect from the server
Public method Disconnect(Options)
Disconnect from the server
Public method Dispose
Dispose of connection. Forces disconnect
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetActiveTicket
Returns the ticket used by the current connection
Public method GetExistingTicket
Get the existing ticket if any for a user on the secified server
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetMapApi
Create a P4.P4MapApi object to be used on the current server connection
Public method GetP4ConfigFile()()()()
The config file used by the connection (if any)
Public method GetP4ConfigFile(String)
The config file that will be used by a given directory (if any)
Public method GetP4EnvironmentVar
Get the value of an P4 environment variable
Public method getP4Server
Return the server connetion
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method IsFileIgnored
Is this file ignored based on the file specified by p4ignore (if any)
Public method Login(String)
Automate the Login to the Perforce Server
Public method Login(String, Options)
Login to the Perforce Server
Public method Login(String, Boolean)
Runs the login process. If the server is using ticket based authentication, actually runs the logon three times. Once to login and update the ticket file, once to get the ticket from the server and finally once to get the ticket expiration data.
Public method Login(String, Options, String)
Run a Login on the Perforce Server
Public method Logout
Logout of the Perforce server
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method ReleaseConnection
Release the connection held by the bridge to the server. This will cause the bridge to call init before the next command is run, forcing it to reinitialize any cached connection settings.
Public method SetClient
Set the client for this connection
Public method SetP4EnvironmentVar
Set the value of an P4 environment variable
Public method SetPassword(String, String)
Set the current user's password on the Perforce server.
Public method SetPassword(String, String, String)
Set the a user's password on the Perforce server.
Public method ToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public method Trust
Run the client side command trust
Public method TrustAndConnect
Connect to an ssl server, handle trust handshake

Properties

  Name Description
Public property ApiLevel
What API level does the server support?
Public property CharacterSetName
The CharacterSet to use for this connection
Public property Client
Property to access client object
Public property ClientMetadata
Property to access Client Metadata
Public property CommandTimeout
Public property Credential
Property to access Credentials
Public property CurrentWorkingDirectory
Set CurrentWorkingDirectory for this server
Public property KeepAlive
Callback to allow the client/user to cancel a long running command
Public property KeepAliveDelay
Time for a command to run before allowing the client/user to cancel a long running command
Public property LastResults
The results of the last command executed
Public property Server
Property to access Server associated with connection
Public property Status
Property to access Connection Status
Public property UserName
Property to access User Name

Events

  Name Description
Public event CommandEcho
Handler for Command Echo
Public event ErrorReceived
Handler for Error Results
Public event InfoResultsReceived
Handler for Info Results
Public event TaggedOutputReceived
Handler for Tagged Output
Public event TextResultsReceived
Handler for Text Results

See Also