コード例 #1
0
        public LateBindingApi.Excel.OLEDBError get__Default(Int32 index)
        {
            object[] paramArray = new object[1];
            paramArray[0] = index;
            object returnValue = Invoker.PropertyGet(this, "_Default", paramArray);

            if (null == returnValue)
            {
                return(null);
            }
            LateBindingApi.Excel.OLEDBError newClass = new LateBindingApi.Excel.OLEDBError(this, returnValue);
            return(newClass);
        }
コード例 #2
0
 public LateBindingApi.Excel.OLEDBError this[Int32 index]
 {
     get
     {
         object[] paramArray = new object[1];
         paramArray[0] = index;
         object returnValue = Invoker.MethodReturn(this, "Item", paramArray);
         if (null == returnValue)
         {
             return(null);
         }
         LateBindingApi.Excel.OLEDBError newClass = new LateBindingApi.Excel.OLEDBError(this, returnValue);
         return(newClass);
     }
 }
コード例 #3
0
        public IEnumerator GetEnumerator()
        {
            object    enumProxy  = Invoker.MethodReturn(this, "_NewEnum");
            COMObject enumerator = new COMObject(this, enumProxy);

            Invoker.Method(enumerator, "Reset", null);
            bool isMoveNextTrue = (bool)Invoker.MethodReturn(enumerator, "MoveNext", null);

            while (true == isMoveNextTrue)
            {
                object itemProxy = Invoker.PropertyGet(enumerator, "Current", null);
                LateBindingApi.Excel.OLEDBError returnClass = new LateBindingApi.Excel.OLEDBError(this, itemProxy);
                isMoveNextTrue = (bool)Invoker.MethodReturn(enumerator, "MoveNext", null);
                yield return(returnClass);
            }
        }