ACAccountStore.RequestAccessAsync 方法

定义

重载

RequestAccessAsync(ACAccountType)

请求访问某种类型的社交帐户。

RequestAccessAsync(ACAccountType, AccountStoreOptions)
RequestAccessAsync(ACAccountType, NSDictionary)

RequestAccessAsync(ACAccountType)

请求访问某种类型的社交帐户。

[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'RequestAccess (ACAccountType, AccountStoreOptions, ACRequestCompletionHandler)' instead.")]
public virtual System.Threading.Tasks.Task<Tuple<bool,Foundation.NSError>> RequestAccessAsync (Accounts.ACAccountType accountType);
abstract member RequestAccessAsync : Accounts.ACAccountType -> System.Threading.Tasks.Task<bool * Foundation.NSError>
override this.RequestAccessAsync : Accounts.ACAccountType -> System.Threading.Tasks.Task<bool * Foundation.NSError>

参数

accountType
ACAccountType

为其请求访问权限的帐户的类型。

返回

表示异步 RequestAccess 操作的任务。 TResult 参数的值为 Accounts.ACRequestCompletionHandler。

属性

适用于

RequestAccessAsync(ACAccountType, AccountStoreOptions)

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public System.Threading.Tasks.Task<Tuple<bool,Foundation.NSError>> RequestAccessAsync (Accounts.ACAccountType accountType, Accounts.AccountStoreOptions options);
member this.RequestAccessAsync : Accounts.ACAccountType * Accounts.AccountStoreOptions -> System.Threading.Tasks.Task<bool * Foundation.NSError>

参数

accountType
ACAccountType

返回

属性

适用于

RequestAccessAsync(ACAccountType, NSDictionary)

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
protected virtual System.Threading.Tasks.Task<Tuple<bool,Foundation.NSError>> RequestAccessAsync (Accounts.ACAccountType accountType, Foundation.NSDictionary options);
abstract member RequestAccessAsync : Accounts.ACAccountType * Foundation.NSDictionary -> System.Threading.Tasks.Task<bool * Foundation.NSError>
override this.RequestAccessAsync : Accounts.ACAccountType * Foundation.NSDictionary -> System.Threading.Tasks.Task<bool * Foundation.NSError>

参数

accountType
ACAccountType
options
NSDictionary

返回

属性

适用于