Visual SourceSafe (VSS) Remote Access Tool Recommended by Microsoft

ISAWVSDK::GetSubProjectsFromParent

Description

Retrieves the names of all subprojects of a project.

Syntax

Long GetSubProjectsFromParent(
        String ParentProject,
        ISAWVSubProjectsFromParentSet** SubProjectsSet,
        Boolean* Canceled,
        String* ResultDescription
);

Parameters

ParentProject
[in] Specifies the name of the project.

SubProjectsSet
[out] Returns the names of the subprojects of the project.

Canceled
[out] If the method fails, returns whether the operation is canceled.

ResultDecription
[out] Returns the description of the return value. If the method succeeds, returns 'Completed'. If the method fails, returns the description of the error.

Return Value

If the method succeeds, returns the value of ESAWV_SUCCESS. If the method fails, returns other error codes.

See Also

Sample

VB Sample:

Dim WithEvents SdkObject As SAWVSDKLib.SAWVSDK 

Set SdkObject = new SAWVSDKLib.SAWVSDK

Private Sub GetSubProjectsFromParent_Click()

    Dim ResultValue As Long
    Dim Canceled As Boolean
    Dim ResultDescription As String
    
    Dim SubProjectSet As SAWVSubProjectsFromParentSet
    
    'Read all the subprojects under project "$/ServerProjectName" on server
    ResultValue = SdkObject.GetSubProjectsFromParent("$/ServerProjectName", False, SubProjectSet, Canceled, ResultDescription)
    
    Dim ProjectTree As String
    
    If ResultValue = 0 Then
        'If it succeeds to call this method, display the information of the subproject
        Dim Count As Long
        Count = SubProjectSet.Count
        Dim Index As Long
        For Index = 0 To Count - 1
            Dim SubProject As SAWVSubProjectsFromParent
            SubProject = SubProjectSet.Item(Index)
            ProjectTree += SubProject.SubProjectName
            ProjectTree += vbLf
        Next
            MsgBox(ProjectTree)
    Else
        MsgBox "Calling 'GetSubProjectsFromParent' function fails."
    End If

End Sub












SourceSafe (VSS) Remote/Web/Internet Access | Software Configuration Management | SCM Solution
Software Configuration Management Online | Source/Version Control Online | Version/Source Control Software
Copyright 2010 Dynamsoft Corporation. All Rights Reserved.