public override void InitializeComInterfaces() { base.InitializeComInterfaces(); if (this.port == null) { try { this.port = (IVdsControllerPort)base.ComUnknown; } catch (InvalidCastException exception) { throw new VdsException("QueryInterface for IVdsControllerPort failed.", exception); } } }
public ControllerPort() { this.refresh = true; this.port = null; }