src/Misc/EFTools/EntityDesign/VisualStudio/VsUtils.cs
// <summary>
//     Check if the project item is a linked item (the item was added as a link file).
// </summary>
Check if the project item is a linked item (the item was added as a link file).
Check if the project item is a linked item ( the item was added as a link file ) .
internal static bool IsLinkProjectItem(ProjectItem projectItem)
        {
            var isLinkItem = false;
            if (!IsWebSiteProject(projectItem.ContainingProject))
            {
                try
                {
                    var prop = projectItem.Properties.Item("IsLink");
                    if (prop != null)
                    {
                        try
                        {
                            isLinkItem = bool.Parse(prop.Value.ToString());
                        }
                        catch (FormatException)
                        {
                            isLinkItem = false;
                        }
                    }
                }
                catch (ArgumentException)
                {
                }
            }
            return isLinkItem;
        }
internal static bool IsLinkProjectItem ( ProjectItem projectItem ) { var isLinkItem = false ; if ( ! IsWebSiteProject ( projectItem . ContainingProject ) ) { try { var prop = projectItem . Properties . Item ( " " ) ; if ( prop != null ) { try { isLinkItem = bool . Parse ( prop . Value . ToString ( ) ) ; } catch ( FormatException ) { isLinkItem = false ; } } } catch ( ArgumentException ) { } } return isLinkItem ; }
Check if the project item is a linked item (the item was added as a link file).
Check if the project item is a linked item ( the item was added as a link file ) .
// Check whether project item is a  linked item // immediately state false if this is a website project since websites don't // support this. The DTE calls after this will throw COM Exceptions if we continue. // As of build 20815.00 // Do nothing here. // For WebSite project, if "IsLink" property is not set, ArgumentException is thrown.
projectItem
ProjectItem