Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Visual Studio
Visual Studio SDK
 UpdateProjectProperties Method
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Reference for Team Foundation Server SDK
ICommonStructureService..::.UpdateProjectProperties Method

Namespace:  Microsoft.TeamFoundation.Server
Assembly:  Microsoft.TeamFoundation (in Microsoft.TeamFoundation.dll)
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

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

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker