Repository.Profile.AddProfile

Adds a new profile resource to the current project. Returns a Boolean value; when true, indicates a successful save.

Syntax
.Profile.AddProfile(Profile)

Parameters
Profile
 * Required. The cProfile object that represents the profile to be added.

Example
This example creates a new profile and then saves it in the first available project in a Synthesis repository. VBA MyRepository Repository MyRepository.ConnectToAccessRepository NewProfile cProfile NewProfile.Name = MyRepository.Project.SetCurrentProject(1) MyRepository.Profile.AddProfile(NewProfile)

VB.NET MyRepository Repository MyRepository.ConnectToAccessRepository NewProfile cProfile MyRepository.Project.SetCurrentProject(1) MyRepository.Profile.AddProfile(NewProfile)