RasConnection.GetActiveConnectionById Method

DotRas SDK

Collapse image Expand Image Copy image CopyHover image
Retrieves an active connection by the entry id.

Namespace: DotRas
Assembly: DotRas (in DotRas.dll) Version: 1.3.5166.33435 (1.3.0.0)

Syntax

C#
[ObsoleteAttribute("This method will be removed in a future version, please use the GetActiveConnections method to find the connection.", 
	false)]
public static RasConnection GetActiveConnectionById(
	Guid entryId
)
Visual Basic
<ObsoleteAttribute("This method will be removed in a future version, please use the GetActiveConnections method to find the connection.", 
	false)> 
Public Shared Function GetActiveConnectionById ( 
	entryId As Guid
) As RasConnection
Visual C++
public:
[ObsoleteAttribute(L"This method will be removed in a future version, please use the GetActiveConnections method to find the connection.", 
	false)]
static RasConnection^ GetActiveConnectionById(
	Guid entryId
)
F#
[<ObsoleteAttribute("This method will be removed in a future version, please use the GetActiveConnections method to find the connection.", 
	false)>]
static member GetActiveConnectionById : 
        entryId : Guid -> RasConnection 

Parameters

entryId
Type: System..::..Guid
The entry id of the connection.

Return Value

Type: RasConnection
A RasConnection if the connection was found; otherwise, a null reference (Nothing in Visual Basic).

See Also