共用方式為


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)

適用於