Reference for Team Foundation Server SDK
ICommonStructureService..::.UpdateProjectProperties Method

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

Visual Basic (Declaration)
Sub UpdateProjectProperties ( _
    projectUri As String, _
    state As String, _
    properties As ProjectProperty() _
)
Visual Basic (Usage)
Dim instance As ICommonStructureService
Dim projectUri As String
Dim state As String
Dim properties As ProjectProperty()

instance.UpdateProjectProperties(projectUri, _
    state, properties)
C#
void UpdateProjectProperties(
    string projectUri,
    string state,
    ProjectProperty[] properties
)
Visual C++
void UpdateProjectProperties(
    String^ projectUri, 
    String^ state, 
    array<ProjectProperty^>^ properties
)
JScript
function UpdateProjectProperties(
    projectUri : String, 
    state : String, 
    properties : ProjectProperty[]
)

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: array<Microsoft.TeamFoundation.Server..::.ProjectProperty>[]()[]
The array of properties for the project
Examples

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

Permissions

See Also

Reference

Tags :


Page view tracker