Device.GetSerialNumber Method

Retrieves the serial number of the video capture device.
Syntax:
Public Function GetSerialNumber( Number As String ) As Boolean
Parameter Description
Number

Specifies the string that will receive the serial number.

Return Value:

True, if the serial number of the video capture device could be retrieved. If the video capture device does not support serial numbers, False is returned.

Limitations:

Runtime only.

Sample:

This example demonstrates how to use the GetSerialNumber method.

Private Sub GetSerialNumber(SerialNumber As String)
    Dim SN As String
    Dim Dev As Device

    ' Get the first video capture device
    Set Dev = ICImagingControl1.Devices.Item(1)

    ' Check, whether a serial number can be retrieved
    If Dev.GetSerialNumber(SN) = True Then
        SerialNumber = SN
    Else
        SerialNumber = "n/a"
    End If
End Sub
See also: Device, Devices

<< Device