This method retrieves a list of ports.
[Visual Basic] [ Long =
]imagekitcontrolname.PrintDraw.EnumPortsVariant(PortNames
As Variant)
[VB.NET] [ Integer =
]imagekitcontrolname.PrintDraw.EnumPortsVariant(ByRef
PortNames As Object)
[C#.NET] [ int =
]imagekitcontrolname.PrintDraw.EnumPortsVariant(ref
object PortNames)
Parameters
Name | Explanation |
---|---|
PortNames | A string containing the retrieved port names |
Return Value
The number of retrieved ports
Explanation
The EnumPortsVariant method retrieves a list of ports.
This method is recommended when using scripting or other languages that require variant types or when using 64 bit builds in VB.NET or C#.
If the return value is 1 or more, then list of retrieved port names will be set in the PortNames parameter.
The PortNames string will be returned as "xxxxx,xxxxx,xxxxx,¥¥¥¥¥¥¥¥," (delimited by commas and ends with a comma).
Also see the EnumPorts method.