Multiple choice technology programming languages

For partial-trust scenarios, you can require CAS privileges for particular methods in your code by specifying an attribute

  1. SqldataAttribute

  2. SqlClientPermissionAttribute

  3. SecqurityAttribute

  4. None of these

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

SqlClientPermissionAttribute is used in .NET Code Access Security (CAS) to restrict SQL operations in partial-trust scenarios. It allows specifying required permissions for methods that access SQL Server, ensuring security in restricted environments.