ICommonStructureService.GetProjectProperties Method

Gets the current properties for a project.

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

Syntax

'Declaration
Sub GetProjectProperties ( _
    projectUri As String, _
    <OutAttribute> ByRef name As String, _
    <OutAttribute> ByRef state As String, _
    <OutAttribute> ByRef templateId As Integer, _
    <OutAttribute> ByRef properties As ProjectProperty() _
)
'Usage
Dim instance As ICommonStructureService 
Dim projectUri As String 
Dim name As String 
Dim state As String 
Dim templateId As Integer 
Dim properties As ProjectProperty()

instance.GetProjectProperties(projectUri, _
    name, state, templateId, properties)
void GetProjectProperties(
    string projectUri,
    out string name,
    out string state,
    out int templateId,
    out ProjectProperty[] properties
)
void GetProjectProperties(
    String^ projectUri, 
    [OutAttribute] String^% name, 
    [OutAttribute] String^% state, 
    [OutAttribute] int% templateId, 
    [OutAttribute] array<ProjectProperty^>^% properties
)
function GetProjectProperties(
    projectUri : String, 
    name : String, 
    state : String, 
    templateId : int, 
    properties : ProjectProperty[]
)

Parameters

  • projectUri
    Type: System.String

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

  • state
    Type: System.String%

    State of the project (New, WellFormed, orDeleting)

  • templateId
    Type: System.Int32%

    Identifier for the project template

Examples

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

.NET Framework Security

See Also

Reference

ICommonStructureService Interface

ICommonStructureService Members

Microsoft.TeamFoundation.Server Namespace