共用方式為


IVMSerialPort::_ID property

The _ID property contains an internal ID number for this serial port.

This property is read-only.

Syntax

HRESULT get__ID(
  [out] long *identifier
);

Property value

The internal ID number for this serial port.

Error codes

Name Meaning
S_OK
The operation was successful.
E_POINTER
The parameter identifier was NULL.
DISP_E_EXCEPTION
An unexpected error has occurred.

Remarks

Not usable by scripting languages.

Requirements

Product
Microsoft Virtual Server 2005 onWindows Server 2003
Download
Microsoft Virtual Server 2005 R2 SP1 Update onWindows Server 2008orWindows Server 2003
Header
VsComInterfaces.h

See also

IVMSerialPort