메소드 | 설명 | |
---|---|---|
AddRef ( ) : void |
Claim a reference to a device. Can only be called from code that can guarantee another reference is already held. Each call to AddRef() must later have exactly one matching call to RemoveRef(). |
|
CpDevice ( |
Constructor. Not intended for external use. Devices should be constructed via CpDevice or CpDeviceList subclasses. |
|
GetAttribute ( string aKey, string &aValue ) : bool |
Query the value of one of the device's attributes
|
|
Handle ( ) : |
Get the handle to the underlying native device
|
|
RemoveRef ( ) : void |
Remove a reference to a device. Removing the final reference causes a device to be deleted. |
|
Udn ( ) : String |
Query the unique identifier associated with a device
|
메소드 | 설명 | |
---|---|---|
CpDeviceCAddRef ( |
||
CpDeviceCGetAttribute ( |
||
CpDeviceCGetUdn ( |
||
CpDeviceCRemoveRef ( |
||
OhNetFree ( |
public CpDevice ( |
||
aHandle | Handle to the underlying native device | |
리턴 | System |
public GetAttribute ( string aKey, string &aValue ) : bool | ||
aKey | string | The name of the attribute being queried. Available attributes /// will be listed in a protocol-specific header |
aValue | string | The value of the attribute |
리턴 | bool |