Security.SecKeyChain.QueryAsData Method
Fetches a set of NSData records from the Keychain.

Syntax

public static Foundation.NSData[] QueryAsData (SecRecord query, int max)

Parameters

query
The query used to lookup the value on the keychain.
max
Maximum number of values to return.

Returns

An array of NSData records associated with the given query.

Remarks

The returned NSData is a binary blob, if you want to get a high-level representation, use SecKeyChain.QueryAsRecord instead.

The returned NSData is not suitable for storing on disk or passing to another process. If you want that, you should use the overload that takes the bool wantPersistentReference parameter and set that to true.

This is the strongly typed equivalent of calling the Security's framework SecItemCopyMatching method with the kSecReturnData set to true and kSecMatchLimit set to the value of max, forcing that many record to be returned.

Requirements

Namespace: Security
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0