public int EnumAdvise(out System.Runtime.InteropServices.ComTypes.IEnumSTATDATA e) { ComDebug.ReportInfo("{0}.IOleObject.EnumAdvise", GetType().Name); e = _oleAdviseHolder.EnumAdvise(); return(ComReturnValue.NOERROR); }
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); }
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; }
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; }
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)); } } }
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; }
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; }