File.SetAttributes Method
Silverlight
This member can be used only by trusted applications. If you try to use this member in a partial-trust application, your code will throw a MethodAccessException exception. This member is security-critical, which restricts its use.
Namespace:
System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly: mscorlib (in mscorlib.dll)
[SecurityCriticalAttribute] public static void SetAttributes( string path, FileAttributes fileAttributes )
Parameters
- path
- Type: System.String
The path to the file.
- fileAttributes
- Type: System.IO.FileAttributes
A bitwise combination of the enumeration values.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.