how the .NET framework security model works ?

lima's picture

the windows 2000 security model protects a system by preventing unauthorised users from accessing that system. how the .NET framework security model works ?also i want to know how does code access security work ?