Evidence Constructor (Evidence^)
.NET Framework (current version)
Initializes a new instance of the Evidence class from a shallow copy of an existing one.
Assembly: mscorlib (in mscorlib.dll)
| Exception | Condition |
|---|---|
| ArgumentException | The evidence parameter is not a valid instance of Evidence. |
The following code example shows the use of the Evidence(Evidence^) constructor. This example is part of a larger example provided for the Evidence class.
Console::WriteLine( "\nMake a copy of the current evidence." ); Evidence^ evidenceCopy = gcnew Evidence( myEvidence ); Console::WriteLine( "Count of new evidence items = {0}", evidenceCopy->Count ); Console::WriteLine( "Does the copy equal the current evidence? {0}", myEvidence->Equals( evidenceCopy ) );
.NET Framework
Available since 1.1
Available since 1.1
Show: