Microsoft.VisualStudio.Project.NestedProjectNode.GetConnectionPointFromPropertySink C# (CSharp) Method

GetConnectionPointFromPropertySink() protected method

Gets a ConnectionPoint for the IPropertyNotifySink interface.
protected GetConnectionPointFromPropertySink ( ) : IConnectionPoint
return IConnectionPoint
        protected virtual IConnectionPoint GetConnectionPointFromPropertySink()
        {
            IConnectionPoint connectionPoint = null;
            object browseObject = this.GetProperty((int)__VSHPROPID.VSHPROPID_BrowseObject);
            IConnectionPointContainer connectionPointContainer = browseObject as IConnectionPointContainer;

            if (connectionPointContainer != null)
            {
                Guid guid = typeof(IPropertyNotifySink).GUID;
                connectionPointContainer.FindConnectionPoint(ref guid, out connectionPoint);
            }

            return connectionPoint;
        }