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



serviceKey
The service key to be assigned.

Glossary Item Box

Creates a new ConnectionOptions from the current ConnectionOptions and assigns the specified service key.

Syntax

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

Parameters

serviceKey
The service key to be assigned.

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

© 2012 All Rights Reserved.