CodeAccessPermission.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 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);
}