SecSharedCredential.RequestSharedWebCredential Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Asynchronously requests shared web credentials from the iCloud Keychain for the specified domain and account.
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.Optimizable)]
public static void RequestSharedWebCredential(string domainName, string account, Action<Security.SecSharedCredentialInfo[],Foundation.NSError> handler);
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.Optimizable)]
public static void RequestSharedWebCredential(string? domainName, string? account, Action<Security.SecSharedCredentialInfo[]?,Foundation.NSError?> handler);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.Optimizable)>]
static member RequestSharedWebCredential : string * string * Action<Security.SecSharedCredentialInfo[], Foundation.NSError> -> unit
Parameters
- domainName
- String
The fully qualified domain name of the website to request credentials for,
or null to search all domains in the app's Associated Domains entitlement.
- account
- String
The account name to request credentials for,
or null to request credentials for all accounts on the matching domain.
- handler
- Action<SecSharedCredentialInfo[],NSError>
A callback invoked when the request completes, receiving an array of SecSharedCredentialInfo with the matching credentials and an NSError if the request failed.
- Attributes
Remarks
This method requires that the app has an Associated Domains entitlement configured for the requested domain. The request may prompt the user for permission.