ArcFM Solution Developer Guide
Connection Property (IMMAdoConnection)


This property returns the ADO connection and allows the user to bypass the Process Framework login.
Syntax
'Declaration
 
<DispIdAttribute(1610678272)>
ReadOnly Property Connection As ADODB.Connection
'Usage
 
Dim instance As IMMAdoConnection
Dim value As ADODB.Connection
 
value = instance.Connection
[DispId(1610678272)]
ADODB.Connection Connection {get;}

Property Value

Returns the ADO Connection

Example
The following code sample shows how IMMAdoConnection::Connection may be implemented.
Visual Basic Copy Code
Private Property Get IMMAdoConnection_Connection() As ADODB.Connection
  Dim sPxConnectionString As String

  'ADO connection string for Oracle OLEDB (this connection info
  'will likely come from your custom login object's dialog)
  sPxConnectionString = "Provider=OraOLEDB.Oracle.1;Password=adamspwd;_
  Persist Security Info=True;User ID=adams;Data Source=orc1.alexandria"

  Dim pConn As ADODB.Connection
  Set pConn = New ADODB.Connection

  pConn.Open sPxConnectionString
  Set IMMAdoConnection_Connection = pConn
End Property
Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

IMMAdoConnection Interface
IMMAdoConnection Members

 

 


Send Comment