Visual Basic (Declaration)
<HostProtectionAttribute(SecurityAction.LinkDemand, ExternalThreading := True)> _
Public Function BeginConnect ( _
addresses As IPAddress(), _
port As Integer, _
requestCallback As AsyncCallback, _
state As Object _
) As IAsyncResult