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