예제 #1
0
        public int EnumAdvise(out System.Runtime.InteropServices.ComTypes.IEnumSTATDATA e)
        {
            ComDebug.ReportInfo("{0}.IOleObject.EnumAdvise", GetType().Name);

            e = _oleAdviseHolder.EnumAdvise();
            return(ComReturnValue.NOERROR);
        }
예제 #2
0
        int BclComTypes.IDataObject.EnumDAdvise(out BclComTypes.IEnumSTATDATA enumAdvise)
        {
            if (null != bclData)
            {
                return(bclData.EnumDAdvise(out enumAdvise));
            }

            OleInterop.IEnumSTATDATA oleEnum;
            int hr = oleData.EnumDAdvise(out oleEnum);

            NativeMethods.ThrowOnFailure(hr);
            if (null == oleEnum)
            {
                enumAdvise = null;
            }
            else
            {
                enumAdvise = oleEnum as BclComTypes.IEnumSTATDATA;
                if (null == enumAdvise)
                {
                    enumAdvise = (BclComTypes.IEnumSTATDATA)(new EnumSTATDATA(oleEnum));
                }
            }
            return(hr);
        }
예제 #3
0
 internal EnumSTATDATA(BclComTypes.IEnumSTATDATA bclEnum)
 {
     if (null == bclEnum)
     {
         throw new ArgumentNullException("System.Runtime.InteropServices.ComTypes.IEnumSTATDATA");
     }
     this.oleEnum = bclEnum as OleInterop.IEnumSTATDATA;
     this.bclEnum = bclEnum;
 }
예제 #4
0
 internal EnumSTATDATA(OleInterop.IEnumSTATDATA oleEnum)
 {
     if (null == oleEnum)
     {
         throw new ArgumentNullException("Microsoft.VisualStudio.OLE.Interop.IEnumSTATDATA");
     }
     this.oleEnum = oleEnum;
     this.bclEnum = oleEnum as BclComTypes.IEnumSTATDATA;
 }
예제 #5
0
 void BclComTypes.IEnumSTATDATA.Clone(out BclComTypes.IEnumSTATDATA newEnum)
 {
     newEnum = null;
     if (null != bclEnum)
     {
         bclEnum.Clone(out newEnum);
     }
     else
     {
         OleInterop.IEnumSTATDATA oleCloned;
         oleEnum.Clone(out oleCloned);
         newEnum = oleCloned as BclComTypes.IEnumSTATDATA;
         if (null == newEnum)
         {
             newEnum = (BclComTypes.IEnumSTATDATA)(new EnumSTATDATA(oleCloned));
         }
     }
 }
예제 #6
0
 internal EnumSTATDATA(BclComTypes.IEnumSTATDATA bclEnum)
 {
     if (null == bclEnum)
         throw new ArgumentNullException("System.Runtime.InteropServices.ComTypes.IEnumSTATDATA");
     this.oleEnum = bclEnum as OleInterop.IEnumSTATDATA;
     this.bclEnum = bclEnum;
 }
예제 #7
0
 internal EnumSTATDATA(OleInterop.IEnumSTATDATA oleEnum)
 {
     if (null == oleEnum)
         throw new ArgumentNullException("Microsoft.VisualStudio.OLE.Interop.IEnumSTATDATA");
     this.oleEnum = oleEnum;
     this.bclEnum = oleEnum as BclComTypes.IEnumSTATDATA;
 }