GetProjectProperties Method
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

ICommonStructureService.GetProjectProperties Method

Gets the current properties for a project.

Namespace:  Microsoft.TeamFoundation.Server
Assembly:  Microsoft.TeamFoundation (in Microsoft.TeamFoundation.dll)

void GetProjectProperties(
	string projectUri,
	out string name,
	out string state,
	out int templateId,
	out ProjectProperty[] properties


Type: System.String

URI of the project from which the structure is to be obtained

Type: System.String%

Name of the project

Type: System.String%

State of the project (New, WellFormed, orDeleting)

Type: System.Int32%

Identifier for the project template

Type: Microsoft.TeamFoundation.Server.ProjectProperty[]%

Array of ProjectProperty values for the project

The following example sets the project at myProjectUri with a ProjectState values of Deleting.

ICommonStructureService css = (ICommonStructureService)tfs.GetService(typeof(ICommonStructureService));

string projName;

string projState;

int templateId;

ProjectProperty[] projProperties;

css.GetProjectProperties(myProjectUri, out projName, out projState, out templateId, out projProperties);

css.UpdateProjectProperties(myProjectUri, ProjectState.Deleting.ToString(), projProperties);

© 2016 Microsoft