Compartir a través de


CodeAccessPermission.Copy Method

Definition

Creates and returns a copy of a permission class object.

public:
 abstract Microsoft::Dynamics::Ax::Xpp::CodeAccessPermission ^ Copy();
public abstract Microsoft.Dynamics.Ax.Xpp.CodeAccessPermission Copy ();
abstract member Copy : unit -> Microsoft.Dynamics.Ax.Xpp.CodeAccessPermission
Public MustOverride Function Copy () As CodeAccessPermission

Returns

A copy of the derived class object.

Remarks

You can override this method as part of the process of making an API more secure.

The following code example shows how to override the copy method to create and return a copy of a class that is derived from the CodeAccessPermission class.

public CodeAccessPermission copy() 
{ 
    return new SysTestCodeAccessPermission(_data); 
}

Applies to