The Principal object represents authenticated users. It contains information about user’s identity and role. You have Principal Permission object in .NET Framework that specifies user and its role. It has Demand method that checks the current user or Principal against the name and role specified in the Principal Permission.
Asked In: Many Interviews |