The Connection type exposes the following members.

Constructors

  Name Description
Public method Connection
Initializes a new instance of the Connection class

Methods

  Name Description
Public method Connect
Public method CreateCommand
Create a P4Command that can be run on the connection
Public method Disconnect()()()()
Public method Disconnect(Options)
Public method Dispose
Releases all resources used by the Connection
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 GetP4EnvironmentVar
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method IsFileIgnored
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)
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
Public method SetP4EnvironmentVar
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

Properties

  Name Description
Public property ApiLevel
What API level does the server support
Public property CharacterSetName
Public property Client
Public property ClientMetadata
Public property CommandTimeout
Public property Credential
Public property CurrentWorkingDirectory
Public property KeepAlive
Public property LastResults
The results of the last command executed
Public property Server
Public property Status
Public property UserName

Events

See Also