ACAccountStore.RequestAccessAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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
- options
- AccountStoreOptions
傳回
- 屬性
適用於
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
傳回
- 屬性