Is there a .NET way of setting permissions on shared folders? All I've been able to find is suggestions to use XCACLS or SetACL

I would have thought there was a more .NET compliant method than that!