Repository.Profile.GetProfile

Returns a cProfile object that represents a given profile resource in the current project. Returns nothing if the profile does not exist or is not in the current project.

Syntax
Profile.GetProfile(ID)

Parameters
ID
 * Required. Integer. The ID number of the profile to retrieve.

Example
This example assumes that a profile with ID #1 exists in the first project of a Synthesis repository. VBA MyRepository Repository MyRepository.ConnectToAccessRepository MyProfile cProfile MyRepository.Project.SetCurrentProject(1) MyProfile = MyRepository.Profile.GetProfile(1) ProfileName String ProfileID Integer ProfileName = MyProfile.Name ProfileID = MyProfile.ID  MsgBox ( & ProfileID &  & ProfileName)

VB.NET MyRepository Repository MyRepository.ConnectToAccessRepository MyProfile SynthesisAPI.cProfile MyRepository.Project.SetCurrentProject(1) MyProfile = MyRepository.Profile.GetProfile(1) ProfileName String ProfileID Integer ProfileName = MyProfile.Name ProfileID = MyProfile.ID  MsgBox ( & ProfileID &  & ProfileName)