Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Side by Side Diff: obsolete/Microsoft.VisualStudio.Project/Automation/OAReferenceItem.cs

Issue 10928195: First round of dead file removal (Closed) Base URL: https://github.com/samclegg/nativeclient-sdk.git@master
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /// Copyright (c) Microsoft Corporation. All rights reserved.
2
3 using System;
4 using System.Diagnostics;
5 using System.Diagnostics.CodeAnalysis;
6 using System.Runtime.InteropServices;
7
8 namespace Microsoft.VisualStudio.Project.Automation
9 {
10 /// <summary>
11 /// Represents the automation object equivalent to a ReferenceNode objec t
12 /// </summary>
13 [SuppressMessage("Microsoft.Interoperability", "CA1405:ComVisibleTypeBas eTypesShouldBeComVisible")]
14 [ComVisible(true), CLSCompliant(false)]
15 public class OAReferenceItem : OAProjectItem<ReferenceNode>
16 {
17 #region ctors
18 public OAReferenceItem(OAProject project, ReferenceNode node)
19 : base(project, node)
20 {
21 }
22
23 #endregion
24
25 #region overridden methods
26 /// <summary>
27 /// Not implemented. If called throws invalid operation exceptio n.
28 /// </summary>
29 public override void Delete()
30 {
31 throw new InvalidOperationException();
32 }
33
34
35 /// <summary>
36 /// Not implemented. If called throws invalid operation exceptio n.
37 /// </summary>
38 /// <param name="viewKind"> A Constants. vsViewKind indicating t he type of view to use.</param>
39 /// <returns></returns>
40 public override EnvDTE.Window Open(string viewKind)
41 {
42 throw new InvalidOperationException();
43 }
44
45 /// <summary>
46 /// Gets or sets the name of the object.
47 /// </summary>
48 public override string Name
49 {
50 get
51 {
52 return base.Name;
53 }
54 set
55 {
56 throw new InvalidOperationException();
57 }
58 }
59
60 /// <summary>
61 /// Gets the ProjectItems collection containing the ProjectItem object supporting this property.
62 /// </summary>
63 public override EnvDTE.ProjectItems Collection
64 {
65 get
66 {
67 // Get the parent node (ReferenceContainerNode)
68 ReferenceContainerNode parentNode = this.Node.Pa rent as ReferenceContainerNode;
69 Debug.Assert(parentNode != null, "Failed to get the parent node");
70
71 // Get the ProjectItems object for the parent no de
72 if(parentNode != null)
73 {
74 // The root node for the project
75 return ((OAReferenceFolderItem)parentNod e.GetAutomationObject()).ProjectItems;
76 }
77
78 return null;
79 }
80 }
81 #endregion
82 }
83 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698