SetClientName() interface is an optional interface that was not implemented in the OPC Fooundation’s deliverables. Please note that the .NET API – like all components for OPC Classic – have low priority with respect to maintenance.
You can either implement the functionality yourself, or look for a commercial solution: Softing’s OPC Development toolkit suports this interface.
02/24/2014
Actually, SetClientName is not optional. In Alarms and Events Custom Interface specification (Version 1.10), a server must implement IOPCCommon, and that is where SetClientName(), unoptionally, resides.
A client, of course, does not have to call it – it is mainly for debugging purposes. And, it is true that the OPC Foundation .NET API does not provide any support for it on the client side.
1 Guest(s)