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



shouldConnect
True if an EntityManager should connect prior to the first server operation.

Glossary Item Box

Creates a new ConnectionOptions from the current ConnectionOptions and specifies whether an EntityManager should connect.

Syntax

Visual Basic (Declaration) 
Public Function WithShouldConnect( _
   ByVal shouldConnect As Boolean _
) As ConnectionOptions
Visual Basic (Usage)Copy Code
Dim instance As ConnectionOptions
Dim shouldConnect As Boolean
Dim value As ConnectionOptions
 
value = instance.WithShouldConnect(shouldConnect)
C# 
public ConnectionOptions WithShouldConnect( 
   bool shouldConnect
)
C++/CLI 
public:
ConnectionOptions^ WithShouldConnect( 
   bool shouldConnect
) 

Parameters

shouldConnect
True if an EntityManager should connect prior to the first server operation.

Return Value

A new ConnectionOptions instance.

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.