Share via


CodeProject Members

Microsoft Robotics Studio

Syntax

public class CodeProject
'Declaration
Public Class CodeProject
public ref class CodeProject

The type exposes the following members.

Public Constructors

  Name Description
Public method CodeProjectCodeProjectNew Overloaded.

Public Methods

  Name Description
Public method AddAttribute
Create an attribute and add it to the element node
Public methodStatic member ConvertToCFAssemblyReferences
Converts a StringCollection of assembly references to their equivalent Compact Framework references.
Public method ConvertToCFProject
Convert a C# or a VB.Net project to a .Net Compact Framework project
Public method CreateNewProjectGuid
Updates the project GUID
Public method CreateVS2003Element Overloaded.
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public method Find
Find all nodes matching the given XPath expression. Namespaces can be indicated using the Namespace Manager
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method Insert
Insert XmlNode into document at the location of the xPath exression
Public method IsCFProject
Indicates whether the code project is targeting .Net Compact Framework
Public method IsCSProject
Indicates whether the code project is a C# project
Public methodStatic member IsMsrsReference
Is the specified assembly name a Global MRI Reference?
Public method IsProxyProject
Indicates whether the code project is a proxy project
Public method IsVBNetProject
Indicates whether the code project is a Visual Basic.Net project
Public method IsVCProject
Indicates whether the code project is a Visual C++ project
Public method Open
Open a code project
Public method Remove
Removes all XML nodes matching the XPath expression
Public method Save
Save a code project if the contents has changed
Public method SaveAs
Save a code project if the contents has changed
Public method ToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public method UpdateGlobalMsrsReferences
Update references to all Global MSRS references
Public method UpdateNode
Updates all elements matching the xPath expression.
Public method UpsertChildAttribute
If an element is already present then it is updated. Otherwise a new element is inserted.
Public method UpsertChildElement
If an element is already present then it is updated. Otherwise a new element is inserted.

Protected Methods

  Name Description
Protected method Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)

Public Fields

  Name Description
Public fieldStatic member CompactFrameworkPrefix
Prefix used to identify Compact Framework components
Public fieldStatic member VS2003Namespace
The XML namespace used for C# and VB.Net code projects
Public fieldStatic member VS2003Prefix
The XML Namespace prefix used as a short name for the actual XML namespace
Public fieldStatic member XPathItemGroup
XPath identifying all item groups
Public fieldStatic member XPathProject
XPath identifying top-level project element
Public fieldStatic member XPathPropertyGroupCondition
XPath identifying all PropertyGroups having any kind of condition
Public fieldStatic member XPathPropertyGroupDebug
XPath identifying all PropertyGroups targeting Debug builds
Public fieldStatic member XPathPropertyGroupNoCondition
XPath identifying all PropertyGroups having no conditions
Public fieldStatic member XPathPropertyGroupRelease
XPath identifying all PropertyGroups targeting Release builds

Public Properties

  Name Description
Public property Document
The XmlDocument representing the code project
Public property FilePath
The file path to the codeproject file being used
Public property IsDirty
Indicates whether the document has changed or not
Public property NamespaceManager
The namespace manager containing the XML namespaces used in xPath expressions

See Also

CodeProject

Microsoft.Dss.Core.Utilities Namespace