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.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
)
void GetProjectProperties (
	String projectUri, 
	/** @attribute OutAttribute() */ /** @ref */ String name, 
	/** @attribute OutAttribute() */ /** @ref */ String state, 
	/** @attribute OutAttribute() */ /** @ref */ int templateId, 
	/** @attribute OutAttribute() */ /** @ref */ ProjectProperty[] properties
)
JScript does not support passing value-type arguments by reference.

Parameters

projectUri

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

name

Name of the project

state

State of the project (New, WellFormed, orDeleting)

templateId

Identifier for the project template

properties

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