Teilen über


GacInstalled.Copy Methode

Definition

Erstellt eine äquivalente Kopie des aktuellen Objekts.

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

Gibt zurück

Eine entsprechende Kopie von GacInstalled.

Beispiele

Im folgenden Codebeispiel wird die Verwendung der Copy -Methode veranschaulicht. Dieses Beispiel ist Teil eines größeren Beispiels, das für die GacInstalled -Klasse bereitgestellt wird.

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)

Gilt für: