Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetProjectProperties Method

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
)

Parameters

projectUri
Type: System.String

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

name
Type: System.String%

Name of the project

state
Type: System.String%

State of the project (New, WellFormed, orDeleting)

templateId
Type: System.Int32%

Identifier for the project template

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

Community Additions

ADD
Show:
© 2015 Microsoft