NamedPermissionSet.Copy Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Creates a permission set copy from a named permission set.

Namespace:   System.Security
Assembly:  mscorlib (in mscorlib.dll)

public override PermissionSet Copy()

Return Value

Type: System.Security.PermissionSet

A permission set that is a copy of the permissions in the named permission set.

The following code example shows the use of the Copy method to create a copy of the current NamedPermissionSet. This code example is part of a larger example provided for the NamedPermissionSet class.

.NET Framework
Available since 1.1
Return to top