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



name
The name to be assigned.

Glossary Item Box

Creates a new ConnectionOptions from the current ConnectionOptions and assigns the specified name.

Syntax

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

Parameters

name
The name to be assigned.

Return Value

A new ConnectionOptions instance.

Remarks

WithName must be used last. All the With... operations clear the name property.

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.