Bagikan melalui


Evidence.AddAssembly(Object) Metode

Definisi

Perhatian

This method is obsolete. Please use AddAssemblyEvidence instead.

Perhatian

Evidence.AddAssembly has been deprecated. Use AddAssemblyEvidence instead.

Perhatian

API ini sudah tidak digunakan lagi.

Menambahkan bukti rakitan yang ditentukan ke kumpulan bukti.

public:
 void AddAssembly(System::Object ^ id);
[System.Obsolete("This method is obsolete. Please use AddAssemblyEvidence instead.")]
public void AddAssembly (object id);
[System.Obsolete("Evidence.AddAssembly has been deprecated. Use AddAssemblyEvidence instead.")]
public void AddAssembly (object id);
public void AddAssembly (object id);
[System.Obsolete]
public void AddAssembly (object id);
[<System.Obsolete("This method is obsolete. Please use AddAssemblyEvidence instead.")>]
member this.AddAssembly : obj -> unit
[<System.Obsolete("Evidence.AddAssembly has been deprecated. Use AddAssemblyEvidence instead.")>]
member this.AddAssembly : obj -> unit
member this.AddAssembly : obj -> unit
[<System.Obsolete>]
member this.AddAssembly : obj -> unit
Public Sub AddAssembly (id As Object)

Parameter

id
Object

Setiap objek bukti.

Atribut

Pengecualian

id adalah null.

id tidak dapat diserialisasikan.

Contoh

Contoh kode berikut menunjukkan penggunaan AddAssembly metode . Contoh ini adalah bagian dari contoh yang lebih besar yang disediakan untuk Evidence kelas .

Console::WriteLine( "Adding assembly evidence." );
myEvidence->AddAssembly( "SN01" );
myEvidence->AddAssembly( gcnew Version( "0.0.0.0" ) );
myEvidence->AddAssembly( mSN );
Console::WriteLine( "Count of evidence items = {0}", myEvidence->Count );
Console.WriteLine("Adding assembly evidence.");
myEvidence.AddAssembly("SN01");
myEvidence.AddAssembly(new Version("0.0.0.0"));
myEvidence.AddAssembly(mSN);
Console.WriteLine("Count of evidence items = " + myEvidence.Count.ToString());
Console.WriteLine("Adding assembly evidence.")
myEvidence.AddAssembly("SN01")
myEvidence.AddAssembly(New Version("0.0.0.0"))
myEvidence.AddAssembly(mSN)
Console.WriteLine(("Count of evidence items = " & myEvidence.Count.ToString()))

Keterangan

Gunakan metode ini untuk bukti yang berasal dari assembly.

Catatan

Metode ini tidak melakukan pemeriksaan untuk mencegah penambahan jenis bukti duplikat. Banyak objek bukti perakitan dapat ada secara bersamaan.

Berlaku untuk