⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 externalreferences.cs

📁 visual basic.net进销存程序设计.rar] - visual basic.net进销存程序设计 [进销存管系统.rar] - 进销存管系统,VB源代码 [vb.net计算机机房管理系统.
💻 CS
📖 第 1 页 / 共 5 页
字号:
        //     return (CodeNamespace) value;
        // }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public CodeClass2 AddClass(System.String Name, System.Object Position, System.Object Bases, System.Object ImplementedInterfaces, vsCMAccess Access)
        // {
        //     object value = ReferencedType.GetMethod("AddClass").Invoke(_reference, new object[] { Name, Position, Bases, ImplementedInterfaces, Access != null ? Access.Reference : null });
        //     return value != null ? new CodeClass2(value) : null;
        // }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public CodeInterface AddInterface(System.String Name, System.Object Position, System.Object Bases, vsCMAccess Access)
        // {
        //     object value = ReferencedType.GetMethod("AddInterface").Invoke(_reference, new object[] { Name, Position, Bases, Access != null ? Access.Reference : null });
        //     return (CodeInterface) value;
        // }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public CodeFunction2 AddFunction(System.String Name, vsCMFunction Kind, System.Object Type, System.Object Position, vsCMAccess Access)
        // {
        //     object value = ReferencedType.GetMethod("AddFunction").Invoke(_reference, new object[] { Name, Kind != null ? Kind.Reference : null, Type, Position, Access != null ? Access.Reference : null });
        //     return value != null ? new CodeFunction2(value) : null;
        // }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public CodeVariable AddVariable(System.String Name, System.Object Type, System.Object Position, vsCMAccess Access)
        // {
        //     object value = ReferencedType.GetMethod("AddVariable").Invoke(_reference, new object[] { Name, Type, Position, Access != null ? Access.Reference : null });
        //     return (CodeVariable) value;
        // }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public CodeAttribute2 AddAttribute(System.String Name, System.String Value, System.Object Position)
        // {
        //     object value = ReferencedType.GetMethod("AddAttribute").Invoke(_reference, new object[] { Name, Value, Position });
        //     return value != null ? new CodeAttribute2(value) : null;
        // }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public CodeStruct AddStruct(System.String Name, System.Object Position, System.Object Bases, System.Object ImplementedInterfaces, vsCMAccess Access)
        // {
        //     object value = ReferencedType.GetMethod("AddStruct").Invoke(_reference, new object[] { Name, Position, Bases, ImplementedInterfaces, Access != null ? Access.Reference : null });
        //     return (CodeStruct) value;
        // }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public CodeEnum AddEnum(System.String Name, System.Object Position, System.Object Bases, vsCMAccess Access)
        // {
        //     object value = ReferencedType.GetMethod("AddEnum").Invoke(_reference, new object[] { Name, Position, Bases, Access != null ? Access.Reference : null });
        //     return (CodeEnum) value;
        // }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public CodeDelegate AddDelegate(System.String Name, System.Object Type, System.Object Position, vsCMAccess Access)
        // {
        //     object value = ReferencedType.GetMethod("AddDelegate").Invoke(_reference, new object[] { Name, Type, Position, Access != null ? Access.Reference : null });
        //     return (CodeDelegate) value;
        // }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public void Remove(System.Object Element)
        // {
        //     ReferencedType.GetMethod("Remove").Invoke(_reference, new object[] { Element });
        // }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public void Synchronize()
        // {
        //     ReferencedType.GetMethod("Synchronize").Invoke(_reference, new object[] {  });
        // }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public CodeImport AddImport(System.String Name, System.Object Position, System.String Alias)
        // {
        //     object value = ReferencedType.GetMethod("AddImport").Invoke(_reference, new object[] { Name, Position, Alias });
        //     return (CodeImport) value;
        // }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public void BeginBatch()
        // {
        //     ReferencedType.GetMethod("BeginBatch").Invoke(_reference, new object[] {  });
        // }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public void EndBatch()
        // {
        //     ReferencedType.GetMethod("EndBatch").Invoke(_reference, new object[] {  });
        // }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public CodeElement2 ElementFromID(System.String ID)
        // {
        //     object value = ReferencedType.GetMethod("ElementFromID").Invoke(_reference, new object[] { ID });
        //     return value != null ? new CodeElement2(value) : null;
        // }
        
    }

    internal class CodeElement2
    {
        public static Type ReferencedType
        {
            get
            {
                if (_referencedType == null)
                {
                    _referencedType = ReferencedAssemblies.EnvDTE80.GetType("EnvDTE80.CodeElement2");
                    if (_referencedType == null)
                    {
                        throw new InvalidOperationException("Failed to load type 'EnvDTE80.CodeElement2' from assembly 'EnvDTE80, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.");
                    }
                }
                return _referencedType;
            }
        }
        private static Type _referencedType;
        
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        public object Reference
        {
            get { return _reference; }
            set { _reference = value; }
        }
        private object _reference;
        
        public CodeElement2()
            : this(null)
        {
        }
        
        public CodeElement2(object reference)
        {
            _reference = ReferencedType.IsInstanceOfType(reference) ? reference : null;
        }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public DTE2 DTE
        // {
        //     get
        //     {
        //         object value = ReferencedType.GetProperty("DTE").GetValue(_reference, new object[] { });
        //         return value != null ? new DTE2(value) : null;
        //     }
        // }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public CodeElements Collection
        // {
        //     get
        //     {
        //         object value = ReferencedType.GetProperty("Collection").GetValue(_reference, new object[] { });
        //         return value != null ? new CodeElements(value) : null;
        //     }
        // }
        
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        public System.String Name
        {
            get { return (System.String) ReferencedType.GetProperty("Name").GetValue(_reference, new object[] { }); }
            set { ReferencedType.GetProperty("Name").SetValue(_reference, value, new object[] { }); }
        }
        
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        public System.String FullName
        {
            get { return (System.String) ReferencedType.GetProperty("FullName").GetValue(_reference, new object[] { }); }
        }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public ProjectItem ProjectItem
        // {
        //     get
        //     {
        //         object value = ReferencedType.GetProperty("ProjectItem").GetValue(_reference, new object[] { });
        //         return value != null ? new ProjectItem(value) : null;
        //     }
        // }
        
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        public vsCMElement Kind
        {
            get
            {
                object value = ReferencedType.GetProperty("Kind").GetValue(_reference, new object[] { });
                return value != null ? new vsCMElement(value) : null;
            }
        }
        
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        public System.Boolean IsCodeType
        {
            get { return (System.Boolean) ReferencedType.GetProperty("IsCodeType").GetValue(_reference, new object[] { }); }
        }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public vsCMInfoLocation InfoLocation
        // {
        //     get { return (vsCMInfoLocation) ReferencedType.GetProperty("InfoLocation").GetValue(_reference, new object[] { }); }
        // }
        
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        public CodeElements Children
        {
            get
            {
                object value = ReferencedType.GetProperty("Children").GetValue(_reference, new object[] { });
                return value != null ? new CodeElements(value) : null;
            }
        }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public System.String Language
        // {
        //     get { return (System.String) ReferencedType.GetProperty("Language").GetValue(_reference, new object[] { }); }
        // }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public TextPoint StartPoint
        // {
        //     get { return (TextPoint) ReferencedType.GetProperty("StartPoint").GetValue(_reference, new object[] { }); }
        // }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public TextPoint EndPoint
        // {
        //     get { return (TextPoint) ReferencedType.GetProperty("EndPoint").GetValue(_reference, new object[] { }); }
        // }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public System.Object ExtenderNames
        // {
        //     get { return (System.Object) ReferencedType.GetProperty("ExtenderNames").GetValue(_reference, new object[] { }); }
        // }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public System.Object Extender
        // {
        //     get { return (System.Object) ReferencedType.GetProperty("Extender").GetValue(_reference, new object[] { }); }
        // }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public System.String ExtenderCATID
        // {
        //     get { return (System.String) ReferencedType.GetProperty("ExtenderCATID").GetValue(_reference, new object[] { }); }
        // }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public System.String ElementID
        // {
        //     get { return (System.String) ReferencedType.GetProperty("ElementID").GetValue(_reference, new object[] { }); }
        // }
        
        // [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Auto-generated wrapper")]
        // public TextPoint GetStartPoint(vsCMPart Part)
        // {
        //     object value = ReferencedType.GetMethod("GetStartPoint").Invoke(_reference, new object[] { Part });
        //     return (TextPoint) value;
        // }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -