コード例 #1
0
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

        public void EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
        {
            //
            // Creates an enumerator of all the connection points supported in the connectable object, one connection point per IID.
            //

            LoggingUtils.PrintFunction();

            ppEnum = null;

            try
            {
                List <IConnectionPoint> connectionPoints = new List <IConnectionPoint> ();

                connectionPoints.Add(this); // one connection point per IID.

                ppEnum = new ConnectionPointEnumerator(connectionPoints);
            }
            catch (Exception e)
            {
                LoggingUtils.HandleException(e);

                ppEnum = null;
            }
        }
コード例 #2
0
 public void Clone(out IEnumConnectionPoints ppenum)
 {
     ppenum = new ConnectionPointList()
     {
         connectionPoints = this.connectionPoints,
         currentEnumIndex = this.currentEnumIndex
     };
 }
コード例 #3
0
 // Token: 0x0600018C RID: 396 RVA: 0x00013168 File Offset: 0x00012168
 public void Clone(out IEnumConnectionPoints ppenum)
 {
     lock (this)
     {
         try
         {
             ppenum = new EnumConnectionPoints(this.m_connectionPoints);
         }
         catch (Exception e)
         {
             throw Server.CreateException(e);
         }
     }
 }
コード例 #4
0
        /// <summary>
        /// try to find connection point by EnumConnectionPoints
        /// </summary>
        private static string EnumConnectionPoint(ICOMObject comInstance, IConnectionPointContainer connectionPointContainer, ref IConnectionPoint point, params string[] sinkIds)
        {
            IConnectionPoint[]    points     = new IConnectionPoint[1];
            IEnumConnectionPoints enumPoints = null;

            try
            {
                connectionPointContainer.EnumConnectionPoints(out enumPoints);
                while (enumPoints.Next(1, points, IntPtr.Zero) == 0) // S_OK = 0 , S_FALSE = 1
                {
                    if (null == points[0])
                    {
                        break;
                    }

                    Guid interfaceGuid;
                    points[0].GetConnectionInterface(out interfaceGuid);

                    for (int i = sinkIds.Length; i > 0; i--)
                    {
                        string id = interfaceGuid.ToString().Replace("{", "").Replace("}", "");
                        if (true == sinkIds[i - 1].Equals(id, StringComparison.InvariantCultureIgnoreCase))
                        {
                            Marshal.ReleaseComObject(enumPoints);
                            enumPoints = null;
                            point      = points[0];
                            return(id);
                        }
                    }
                }
                return(null);
            }
            catch (Exception throwedException)
            {
                comInstance.Console.WriteException(throwedException);
                return(null);
            }
            finally
            {
                if (null != enumPoints)
                {
                    Marshal.ReleaseComObject(enumPoints);
                }
            }
        }
コード例 #5
0
        public void Clone(out IEnumConnectionPoints ppenum)
        {
            EnumConnectionPoints points;

            Monitor.Enter(points = this);
            try
            {
                ppenum = new EnumConnectionPoints(this.m_connectionPoints);
            }
            catch (Exception exception)
            {
                throw Server.CreateException(exception);
            }
            finally
            {
                Monitor.Exit(points);
            }
        }
コード例 #6
0
        public void EnumConnectionPoints(out IEnumConnectionPoints ppenum)
        {
            ConnectionPointContainer container;

            Monitor.Enter(container = this);
            try
            {
                ppenum = new OpcCom.Da.Wrapper.EnumConnectionPoints(this.m_connectionPoints.Values);
            }
            catch (Exception exception)
            {
                throw Server.CreateException(exception);
            }
            finally
            {
                Monitor.Exit(container);
            }
        }
コード例 #7
0
 public void EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
 {
     throw new NotImplementedException();
 }
コード例 #8
0
ファイル: EditorHostPane.cs プロジェクト: netcore3/AvaloniaVS
 void IConnectionPointContainer.EnumConnectionPoints(out IEnumConnectionPoints ppEnum) => ((IConnectionPointContainer)_editorWindow).EnumConnectionPoints(out ppEnum);
コード例 #9
0
 void IConnectionPointContainer.EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
 {
     ppEnum = null;
 }
コード例 #10
0
 public void EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
 {
     ppEnum = this.connectionPoints;
 }
コード例 #11
0
 public void EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
 {
     ppEnum = null;
 }
コード例 #12
0
 void IConnectionPointContainer.EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
 {
     ((IConnectionPointContainer)featureLayer).EnumConnectionPoints(out ppEnum);
 }
コード例 #13
0
 void IConnectionPointContainer.EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
 {
     // This doesn't need to be implemented; all we care about
     // is FindConnectionPoint().
     throw new NotImplementedException();
 }
コード例 #14
0
 void IConnectionPointContainer.EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
 {
     throw new Exception("The method or operation is not implemented.");
 }
コード例 #15
0
 void IConnectionPointContainer.EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
 {
     ppEnum = new EnumConnectionPoints(connectionPoints.Values);
 }
コード例 #16
0
 public void EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
 {
     var codeWindow = (IConnectionPointContainer) _vsCodeWindow;
     codeWindow.EnumConnectionPoints(out ppEnum);
 }
コード例 #17
0
ファイル: AD7Port.cs プロジェクト: blackberry/VSPlugin
 /// <summary>
 /// Creates an enumerator object to iterate through all the connection points supported in the connectable object, one 
 /// connection point per outgoing IID. Not implemented. (http://msdn.microsoft.com/en-CA/library/ms682460.aspx)
 /// </summary>
 /// <param name="ppEnum"> An IEnumConnectionPoints object that receives the newly created enumerator. </param>
 public void EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
 {
     // We only need FindConnectionPoint().
     throw new NotImplementedException();
 }
コード例 #18
0
 void IConnectionPointContainer.EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
 {
     throw new NotImplementedException();
 }
コード例 #19
0
ファイル: DebugPort.cs プロジェクト: Xtremrules/dot42
 void IConnectionPointContainer.EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
 {
     // This doesn't need to be implemented; all we care about
     // is FindConnectionPoint().
     throw new NotImplementedException();
 }
コード例 #20
0
        public void EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
        {
            var codeWindow = (IConnectionPointContainer)_vsCodeWindow;

            codeWindow.EnumConnectionPoints(out ppEnum);
        }
コード例 #21
0
 /// <summary>
 /// Creates an enumerator object to iterate through all the connection points supported in the connectable object, one
 /// connection point per outgoing IID. Not implemented. (http://msdn.microsoft.com/en-CA/library/ms682460.aspx)
 /// </summary>
 /// <param name="ppEnum"> An IEnumConnectionPoints object that receives the newly created enumerator. </param>
 public void EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
 {
     // We only need FindConnectionPoint().
     throw new NotImplementedException();
 }
コード例 #22
0
 void Microsoft.VisualStudio.OLE.Interop.IConnectionPointContainer.EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
 {
     throw new NotImplementedException();
 }
コード例 #23
0
 public void EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
 {
     ppEnum = null;
 }
コード例 #24
0
 public void EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
 {
     this._eventContainer.EnumConnectionPoints(out ppEnum);
 }
コード例 #25
0
 void Microsoft.VisualStudio.OLE.Interop.IConnectionPointContainer.EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
 {
     throw new NotImplementedException();
 }
コード例 #26
0
 public extern virtual void EnumConnectionPoints(out IEnumConnectionPoints ppEnum);
コード例 #27
0
 void IConnectionPointContainer.EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
 {
     throw new NotImplementedException();
 }
コード例 #28
0
 public virtual extern void EnumConnectionPoints(out IEnumConnectionPoints ppEnum);