ArcGIS Pro 2.8 API Reference Guide
Project Class Methods


ArcGIS.Desktop.Core Namespace : Project Class

For a list of all members of this type, see Project members.

Public Methods
 NameDescription
Public MethodAdds the item to the current project. This method must be called on the MCT. Use QueuedTask.Run.  
Public Method Indicates if metadata is editable for the item.  
Public Methodstatic (Shared in Visual Basic)Checks if the specified project or project package can be opened  
Public Methodstatic (Shared in Visual Basic) Clears the list of recent projects  
Public Method Copy metadata from Item. This method must be called on the MCT. Use QueuedTask.Run.  
Public Methodstatic (Shared in Visual Basic) Creates a new project with properties determined by CreateProjectSettings  
Public MethodDiscards all unsaved data edits in the project  
Public MethodOverloaded.   
Public Method Find the item identified by the physical path.  
Public Methodstatic (Shared in Visual Basic) Gets the active catalog view or null if no catalog view is active  
Public Methodstatic (Shared in Visual Basic)Gets the catalog pane. If createIfNecessary = true and the catalog pane has not been created, the pane will be created. Otherwise, if the catalog pane has not been created and createIfNecessary = false, null will be returned  
Public Methodstatic (Shared in Visual Basic) Get the default project settings  
Public MethodGets a collection of a specific type of items within the project  
Public Method Get the container with the given key. Container keys are not localized. A container is needed only in those situations where you want to select a specific item that occurs in more than one container.  
Public Methodstatic (Shared in Visual Basic) Retrieves the list of recently opened projects  
Public Method Gets the item’s metadata XML document as a string. This method must be called on the MCT. Use QueuedTask.Run.  
Public MethodOverloaded.   
Public MethodOverloaded.   
Public Methodstatic (Shared in Visual Basic) Opens an existing project or project package  
Public MethodRestores the last data edit that was reversed in the project  
Public MethodRemoves the project item from the current project. This method must be called on the MCT. Use QueuedTask.Run.  
Public MethodRemoves project items from the current project. This method must be called on the MCT. Use QueuedTask.Run.  
Public Methodstatic (Shared in Visual Basic) Removes the project entry corresponding to the given input path from the recent list of projects  
Public Method  
Public Method Saves a copy of the current project file (*.aprx) to the specified location with the specified file name, then opens the new project file  
Public Method Saves the project  
Public MethodSave all unsaved data edits in the project  
Public Method Creates a new project from an untitled session  
Public Method Save the metadata of the current item as HTML. This method must be called on the MCT. Use QueuedTask.Run.  
Public Method Save the metadata of the current item using customized XSLT. This method must be called on the MCT. Use QueuedTask.Run.  
Public Method Save the metadata of the current item as XML. This method must be called on the MCT. Use QueuedTask.Run.  
Public MethodSearches the project for items that match the provided criteria  
Public Method Sets the current project's default geodatabase. This method must be called on the MCT. Use QueuedTask.Run.  
Public Method Sets the current project's default toolbox. This method must be called on the MCT. Use QueuedTask.Run.  
Public Method Sets the dirty state of the project  
Public Method Sets the current project's home folder. This method must be called on the MCT. Use QueuedTask.Run.  
Public Method Sets a value that indicates if editing is to be enabled or disabled within the application.  
Public Method Sets the item’s metadata to the XML document provided as a string. This method must be called on the MCT. Use QueuedTask.Run.  
Public Method Updates metadata with the current properties of the item. Metadata is created for the item if it doesn't already exist. This method must be called on the MCT. Use QueuedTask.Run.  
Public MethodReverses the last data edit in the project  
Public Method Upgrade the metadata of the current item. This method must be called on the MCT. Use QueuedTask.Run.  
Top
Protected Methods
 NameDescription
Protected MethodOverloaded.  (Inherited from ArcGIS.Desktop.Framework.Contracts.PropertyChangedBase)
Protected MethodOverloaded.  (Inherited from ArcGIS.Desktop.Framework.Contracts.PropertyChangedBase)
Top
Extension Methods
 NameDescription
Public Extension Method Adds the specified style to the current project. This method must be called on the MCT. Use QueuedTask.Run.
Public Extension Method Creates a new mobile style file (.stylx) on disk and adds the mobile style to the current project. This method must be called on the MCT. Use QueuedTask.Run.
Public Extension Method Creates a new style file (.stylx) on disk and adds the style to the current project. This method must be called on the MCT. Use QueuedTask.Run.
Public Extension Method Returns the project's collection of bookmarks. This method must be called on the MCT. Use QueuedTask.Run.
Public Extension Method Removes the specified style from the current project. This method must be called on the MCT. Use QueuedTask.Run.
Top
See Also

Reference

Project Class
ArcGIS.Desktop.Core Namespace