Repository.Profile.UpdateProfile

Updates the properties of a given profile resource in the current project. Returns a Boolean value; when true, indicates a successful update.

Syntax
.Profile.UpdateProfile(profile)

Parameters
profile
 * Required. The cProfile object that represents the profile resource to be updated.

Example
This example assumes that a profile with ID #1 exists in the first available project of a repository.

VBA MyRepository Repository MyRepository.ConnectToAccessRepository MyProfile cProfile MyRepository.Project.SetCurrentProject(1) MyProfile = MyRepository.Profile.GetProfile(1) MyProfile.Name = MyRepository.Profile.UpdateProfile(MyProfile)

VB.NET MyRepository Repository MyRepository.ConnectToAccessRepository MyProfile cProfile MyRepository.Project.SetCurrentProject(1) MyProfile = MyRepository.Profile.GetProfile(1) MyProfile.Name = MyRepository.Profile.UpdateProfile(MyProfile)