Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
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.

ICommonStructureService.UpdateProjectProperties Method

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

void UpdateProjectProperties(
	string projectUri,
	string state,
	ProjectProperty[] properties


Type: System.String

The project to be updated

Type: System.String

A ProjectState value indicating the state of the project (New, WellFormed, or Deleting)

Type: Microsoft.TeamFoundation.Server.ProjectProperty[]

The array of properties for the project

The following example sets the project at myProjectUri with a ProjectState value 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);

Community Additions

© 2015 Microsoft