Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.