Repository.URD.AddURD: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{Template:APIClass|Repository Class|Repository}}
{{Template:APIClass|Repository Class|Repository}}
 
Adds a new URD
== Method Syntax==
== Method Syntax==
{{APIName|AddURD(}}
{{APIName|'''AddURD'''(}}
{{APIPrefix|ByVal}}
{{APIPrefix|ByVal}}
{{APIName|urd}}
{{APIName|urd}}

Revision as of 23:31, 23 September 2013


Adds a new URD

Method Syntax

AddURD( ByVal urd As cURD ) As Boolean
Saves a new URD in the repository.

Usage Example

Declare a new repository connection class.

       Private WithEvents MyRepository As New Repository

Connect to the Synthesis repository.

       Dim Success As Boolean = False
       Success = MyRepository.ConnectToRepository("RepositoryFileNamePath")

Create a new URD.

       Dim newURD As New cURD("NewURD1")

Add the URD to the repository.

       Dim SuccessAddURD As Boolean = False
       SuccessAddURD = MyRepository.AddURD(newURD)