共用方式為


ASCredentialIdentityStore.ReplaceCredentialIdentitiesAsync 方法

定義

以非同步方式將現有的身分識別取代為 newCredentialIdentities 存放區中指定的 。 如果所有身分識別都已移除且沒有錯誤,則傳回的元組會具有 的第一個值 true

public virtual System.Threading.Tasks.Task<Tuple<bool,Foundation.NSError>> ReplaceCredentialIdentitiesAsync (AuthenticationServices.ASPasswordCredentialIdentity[] newCredentialIdentities);
abstract member ReplaceCredentialIdentitiesAsync : AuthenticationServices.ASPasswordCredentialIdentity[] -> System.Threading.Tasks.Task<bool * Foundation.NSError>
override this.ReplaceCredentialIdentitiesAsync : AuthenticationServices.ASPasswordCredentialIdentity[] -> System.Threading.Tasks.Task<bool * Foundation.NSError>

參數

newCredentialIdentities
ASPasswordCredentialIdentity[]

傳回

適用於