JSRDotNETSDK Reference

# InstrumentOpenCriteria.AddPortToExclude Method

See Also

Adds a port to exclude when the plugin will search for instruments. If this list is empty, then all ports will be searched. The "port string" is specific to the method used for searching for instruments: e.g. COM port for SERIAL, IP Address for ETHERNET, etc.

Namespace: JSRDotNETSDK
Assembly: JSRDotNETSDK (in JSRDotNETSDK.dll)
Syntax

VB
C#
C++
JScript
Copy

    public void AddPortToExclude(
       string strPortName
    )

    This language is not supported or no code example is available.

#### Parameters

strPortName

  Type: string

  Name of the port to be added.

Exceptions

Exception type | Condition
--- | ---
ExceptionJSRDotNET | Thrown when the string is null or contains a comma.

See Also

#### Reference

InstrumentOpenCriteria Class
InstrumentOpenCriteria Members
JSRDotNETSDK Namespace