Cocktail Help Reference
ConnectionOptions Constructor
See Also  Send Feedback
Cocktail Assembly > Cocktail Namespace > ConnectionOptions Class : ConnectionOptions Constructor



name
The name of the ConnectionOptions.
shouldConnect
Specifies whether the EntityManager will attempt to connect to the EntityServer as soon as it is created.
dataSourceExtension
Specifies what run-time data source key(s) will be used.
entityServiceOption
Specifies whether you will be using local or distributed data sources.
compositionContextName
The name of the CompositionContext used to resolve dependencies and extensions.
serviceKey
Names the key providing the address of the application server with which the EntityManager will communicate.
isDesignTime
Specifies whether this ConnectionOptions instance is for design time.

Glossary Item Box

Creates a ConnectionOptions instance with the given name and options.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal name As String, _
   Optional ByVal shouldConnect As Boolean, _
   Optional ByVal dataSourceExtension As String, _
   Optional ByVal entityServiceOption As IdeaBlade.EntityModel.EntityServiceOption, _
   Optional ByVal compositionContextName As String, _
   Optional ByVal serviceKey As String, _
   Optional ByVal isDesignTime As Boolean _
)
Visual Basic (Usage)Copy Code
Dim name As String
Dim shouldConnect As Boolean
Dim dataSourceExtension As String
Dim entityServiceOption As IdeaBlade.EntityModel.EntityServiceOption
Dim compositionContextName As String
Dim serviceKey As String
Dim isDesignTime As Boolean
 
Dim instance As New ConnectionOptions(name, shouldConnect, dataSourceExtension, entityServiceOption, compositionContextName, serviceKey, isDesignTime)
C# 
public ConnectionOptions( 
   string name,
   bool shouldConnect,
   string dataSourceExtension,
   IdeaBlade.EntityModel.EntityServiceOption entityServiceOption,
   string compositionContextName,
   string serviceKey,
   bool isDesignTime
)
C++/CLI 
public:
ConnectionOptions( 
   String^ name,
   bool shouldConnect,
   String^ dataSourceExtension,
   IdeaBlade.EntityModel.EntityServiceOption entityServiceOption,
   String^ compositionContextName,
   String^ serviceKey,
   bool isDesignTime
)

Parameters

name
The name of the ConnectionOptions.
shouldConnect
Specifies whether the EntityManager will attempt to connect to the EntityServer as soon as it is created.
dataSourceExtension
Specifies what run-time data source key(s) will be used.
entityServiceOption
Specifies whether you will be using local or distributed data sources.
compositionContextName
The name of the CompositionContext used to resolve dependencies and extensions.
serviceKey
Names the key providing the address of the application server with which the EntityManager will communicate.
isDesignTime
Specifies whether this ConnectionOptions instance is for design time.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.