示例#1
0
 public override void InitializeComInterfaces()
 {
     base.InitializeComInterfaces();
     if (this.port == null)
     {
         try
         {
             this.port = (IVdsHbaPort)base.ComUnknown;
         }
         catch (InvalidCastException exception)
         {
             throw new VdsException("QueryInterface for IVdsHbaPort failed.", exception);
         }
     }
 }
示例#2
0
 public HbaPort()
 {
     this.refresh = true;
     this.port    = null;
 }