Specifies the name of a permission set that is being declared.
[Visual Basic] Public Property Name As String [C#] public string Name {get; set;} [C++] public: __property String* get_Name(); public: __property void set_Name(String*); [JScript] public function get Name() : String; public function set Name(String);
String value corresponding to the name of an immutable Named Permission Set (one of several permission sets that are contained in default policy and may not be altered). Immutable named permission sets include Nothing, Execution, Everything, and FullTrust.
Because named permission sets may vary from machine to machine, the use of named permission sets for declarative security is restricted to the immutable named permission sets including as part of default policy. In this way a developer can know that the permissions contained in the permission set being referenced will be the same wherever the code is run.
PermissionSetAttribute Class | PermissionSetAttribute Members | System.Security.Permissions Namespace