function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Tejas KshirsagarTejas Kshirsagar 

I need to fetch the recordtypes of a particular profile when selected on an object.

SwethaSwetha (Salesforce Developers) 
HI Tejas,
Are you trying to Retrieve the RecordType which are Accessible for the particular Profile? 
See https://salesforce.stackexchange.com/questions/94041/retrieve-the-recordtype-which-are-accessible-by-profile-only

If this information helps, please mark the answer as best. Thank you