GacInstalled.Copy 方法

定义

创建当前对象的等效副本。

public:
 System::Object ^ Copy();
public object Copy ();
member this.Copy : unit -> obj
Public Function Copy () As Object

返回

GacInstalled 的一个等效副本。

示例

下面的代码示例演示如何使用 Copy 方法。 此示例是为 类提供的更大示例的 GacInstalled 一部分。

GacInstalled ^ myGacInstalledCopy = 
    dynamic_cast<GacInstalled^>(myGacInstalled->Copy());
bool result = myGacInstalled->Equals( myGacInstalledCopy );
GacInstalled myGacInstalledCopy = 
    (GacInstalled)myGacInstalled.Copy();
bool result = myGacInstalled.Equals(myGacInstalledCopy);
Dim myGacInstalledCopy As GacInstalled = _
    CType(myGacInstalled.Copy(), GacInstalled)
Dim result As Boolean = myGacInstalled.Equals(myGacInstalledCopy)

适用于