Description: The IPermission Copy interface in C# is used to copy the permission object. This interface is an extension of the IPermission interface that provides the ability to copy the permission object. The copy method is used to create a new permission instance that is the same as the current instance of the permission.
Code Example 1: //Create a new permission object IPermission myPermission = new MyPermission(); //Copy the permissions to a new object IPermission copyPermission = myPermission.Copy();
Code Example 2: //Create a file permission object FileIOPermission filePermission = new FileIOPermission(FileIOPermissionAccess.Read, @"C:\Temp"); //Copy the permissions to a new object IPermission copyPermission = filePermission.Copy();
Package Library: System.Security.Permissions. This package library is included as a part of the .NET Framework.
C# (CSharp) IPermission.Copy - 60 examples found. These are the top rated real world C# (CSharp) examples of IPermission.Copy extracted from open source projects. You can rate examples to help us improve the quality of examples.