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
 
<System.Runtime.InteropServices.DispIdAttribute(1610678272)>
ReadOnly Property Connection As ADODB.Connection
'Usage
 
Dim instance As IMMAdoConnection
Dim value As ADODB.Connection
 
value = instance.Connection
[System.Runtime.InteropServices.DispId(1610678272)]
ADODB.Connection Connection {get;}
read-only property Connection: ADODB.Connection; 
System.Runtime.InteropServices.DispIdAttribute(1610678272)
function get Connection : ADODB.Connection
[System.Runtime.InteropServices.DispId(1610678272)]
__property ADODB.Connection* get_Connection();
[System.Runtime.InteropServices.DispId(1610678272)]
property ADODB.Connection^ Connection {
   ADODB.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 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IMMAdoConnection Interface
IMMAdoConnection Members

Send Feedback