Evidence.Count Evidence.Count Evidence.Count Evidence.Count Property

定義

警告

この API は現在使われていません。

証拠セット内の証拠オブジェクトの数を取得します。Gets the number of evidence objects in the evidence set.

public:
 property int Count { int get(); };
[System.Obsolete]
[System.Obsolete("Evidence should not be treated as an ICollection. Please use GetHostEnumerator and GetAssemblyEnumerator to iterate over the evidence to collect a count.")]
public int Count { get; }
member this.Count : int
Public ReadOnly Property Count As Integer

プロパティ値

証拠セット内の証拠オブジェクトの数。The number of evidence objects in the evidence set.

実装

次のコード例の使用を示しています、Countプロパティ。The following code example shows the use of the Count property. この例が示されている例の一部、Evidenceクラス。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 ) );
Console.WriteLine("\nMake a copy of the current evidence.");
Evidence evidenceCopy = new Evidence(myEvidence);
Console.WriteLine("Count of new evidence items = " + evidenceCopy.Count);
Console.WriteLine("Does the copy equal the current evidence? " + myEvidence.Equals(evidenceCopy));
Console.WriteLine(ControlChars.Lf & "Make a copy of the current evidence.")
Dim evidenceCopy As New Evidence(myEvidence)
Console.WriteLine(("Count of new evidence items = " & evidenceCopy.Count.ToString()))
Console.WriteLine(("Does the copy equal the current evidence? " & myEvidence.Equals(evidenceCopy)))

適用対象