| 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.
| Exception | Description |
|---|---|
| System.InvalidOperationException | Thrown if the ConnectionOptions with the specified name are not found. |
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