![Symantec OLE Automation Скачать руководство пользователя страница 40](http://html.mh-extra.com/html/symantec/ole-automation/ole-automation_manual_1418926040.webp)
Table 2-20
Connection type properties and return values (continued)
Description
Return value
Property
Returns the number of available connection
types.
The following are examples of valid
connection types:
■
COM1
■
COM2
■
COM3
■
COM4
■
TCP/IP
■
SPX
■
NetBIOS
■
ISDN via CAPI 2.0
■
Modem name (as it appears on the
computer)
Integer
Integer = <CHostData>.ConnectionType
Returns the first available connection type.
String
String = <CHostData>.FirstConnectionType
Returns the next available connection type.
This is called sequentially for the number of
connection types that is set in
<CHostData>.ConnectionTypes to enumerate
all connection types.
String
String = <CHostData>.NextConnectionType
Returns TRUE if the named connection type
is found in the list of available connection
types.
Bool
Bool =
<CHostData>.FindConnectionType(ConnectionType)
Returns the maximum number of connection
types that can be active on this host.
Integer
Integer = <CHostData>.MaxAssignedConnections
Returns the first assigned active connection
type.
String
String = <CHostData>.FirstAssignedConnection
Returns the next assigned active connection
type.
String
String = <CHostData>.NextAssignedConnection
Returns TRUE if the connection type that is
passed in matches any of the active
connection types.
Bool
Bool =
<CHostData>.FindAssignedConnection(ConnectionType)
Visual Basic object definitions
CHostData properties
40