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



name
The name of the ConnectionOptions to be retrieved.

Glossary Item Box

Retrieves the ConnectionOptions with the specified name.

Syntax

Visual Basic (Declaration) 
Public Shared Function GetByName( _
   ByVal name As String _
) As ConnectionOptions
Visual Basic (Usage)Copy Code
Dim name As String
Dim value As ConnectionOptions
 
value = ConnectionOptions.GetByName(name)
C# 
public static ConnectionOptions GetByName( 
   string name
)
C++/CLI 
public:
static ConnectionOptions^ GetByName( 
   String^ name
) 

Parameters

name
The name of the ConnectionOptions to be retrieved.

Exceptions

ExceptionDescription
System.InvalidOperationExceptionThrown if the ConnectionOptions with the specified name are not found.

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.