NamedPermissionSet.Copy Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates an equivalent copy of the named permission set.
Overloads
Copy() |
Creates a permission set copy from a named permission set. |
Copy(String) |
Creates a copy of the named permission set with a different name but the same permissions. |
Copy()
- Source:
- NamedPermissionSet.cs
- Source:
- NamedPermissionSet.cs
Creates a permission set copy from a named permission set.
public:
override System::Security::PermissionSet ^ Copy();
public override System.Security.PermissionSet Copy ();
override this.Copy : unit -> System.Security.PermissionSet
Public Overrides Function Copy () As PermissionSet
Returns
A permission set that is a copy of the permissions in the named permission set.
Applies to
Copy(String)
- Source:
- NamedPermissionSet.cs
- Source:
- NamedPermissionSet.cs
Creates a copy of the named permission set with a different name but the same permissions.
public:
System::Security::NamedPermissionSet ^ Copy(System::String ^ name);
public System.Security.NamedPermissionSet Copy (string name);
override this.Copy : string -> System.Security.NamedPermissionSet
Public Function Copy (name As String) As NamedPermissionSet
Parameters
- name
- String
The name for the new named permission set.
Returns
A copy of the named permission set with the new name.
Exceptions
The name
parameter is null
or is an empty string ("").