PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Permission­Set­Declaration Class / Permission­Set­Declaration Methods / Permission­Set­Declaration.​Clone Method

PermissionSetDeclaration.Clone Method

Creates a clone of the current module element and express this clone for use in a different module.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public PermissionSetDeclaration Clone(
	ModuleDeclaration targetModule
)

Parameters

targetModule
Type: PostSharp.Sdk.CodeModel.ModuleDeclaration
The ModuleDeclaration for which the clone should be expressed.

Return Value

Type: PermissionSetDeclaration
A clone of the current element, expressed for targetModule.
See Also