Evidence::GetEnumerator Method ()
.NET Framework (current version)
Note: This API is now obsolete.
Namespace:
System.Security.Policy
Assembly: mscorlib (in mscorlib.dll)
Return to top
Enumerates all evidence in the set, both that provided by the host and that provided by the assembly.
Assembly: mscorlib (in mscorlib.dll)
public: [ObsoleteAttribute("GetEnumerator is obsolete. Please use GetAssemblyEnumerator and GetHostEnumerator instead.")] virtual IEnumerator^ GetEnumerator() sealed
Return Value
Type: System.Collections::IEnumerator^An enumerator for evidence added by both the AddHost method and the AddAssembly method.
Implements
IEnumerable::GetEnumerator()The following code example shows the use of the GetEnumerator method. This example is part of a larger example provided for the Evidence class.
int p = 0; Console::WriteLine( "\nCurrent evidence = " ); if ( nullptr == myEvidence ) return 0; IEnumerator^ list = myEvidence->GetEnumerator(); IEnumerator^ myEnum1 = list; while ( myEnum1->MoveNext() ) { Object^ obj = safe_cast<Object^>(myEnum1->Current); Console::WriteLine( obj ); p++; }
.NET Framework
Available since 1.1
Available since 1.1
Show: