X509Certificate2Collection.Find Method
Assembly: System (in system.dll)
'Declaration Public Function Find ( _ findType As X509FindType, _ findValue As Object, _ validOnly As Boolean _ ) As X509Certificate2Collection 'Usage Dim instance As X509Certificate2Collection Dim findType As X509FindType Dim findValue As Object Dim validOnly As Boolean Dim returnValue As X509Certificate2Collection returnValue = instance.Find(findType, findValue, validOnly)
public X509Certificate2Collection Find ( X509FindType findType, Object findValue, boolean validOnly )
public function Find ( findType : X509FindType, findValue : Object, validOnly : boolean ) : X509Certificate2Collection
Parameters
- findType
One of the X509FindType values.
- findValue
The search criteria as an object.
- validOnly
true to allow only valid certificates to be returned from the search; otherwise, false.
Return Value
An X509Certificate2Collection object.Use this method to find X509Certificate2 objects if no user interaction is needed. Use the Find method to allow the user to select X509Certificate2 objects.
Note that this method can be used in a cascading or nested style, narrowing the search criteria with each call to the method.
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.