IPermission.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 an identical copy of the current permission.
public:
System::Security::IPermission ^ Copy();
public System.Security.IPermission Copy ();
abstract member Copy : unit -> System.Security.IPermission
Public Function Copy () As IPermission
Returns
A copy of the current permission.
Examples
The following code example demonstrates implementing the Copy method. This code example is part of a larger example provided for the IPermission interface.
// Return a new object that matches 'this' object's permissions.
public:
virtual IPermission^ Copy () override sealed
{
return (IPermission^) Clone();
}
// Return a new object that matches 'this' object's permissions.
public sealed override IPermission Copy()
{
return (IPermission)Clone();
}
' Return a new object that matches 'this' object's permissions.
Public Overrides Function Copy() As IPermission
Return CType(Clone(), IPermission)
End Function 'Copy
Remarks
A copy of a permission represents the same access to resources as the original permission.
Applies to
ทํางานร่วมกับเราใน GitHub
แหล่งที่มาสำหรับเนื้อหานี้สามารถพบได้บน GitHub ซึ่งคุณยังสามารถสร้างและตรวจสอบปัญหาและคำขอดึงข้อมูลได้ สำหรับข้อมูลเพิ่มเติม ให้ดูคู่มือผู้สนับสนุนของเรา