UpdateProjectProperties 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.UpdateProjectProperties Method

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

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

Parameters

projectUri
Type: System.String

The project to be updated

state
Type: System.String

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

properties
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);

Show:
© 2016 Microsoft