ArcGISRuntime.UWP.Samples.AuthorEditSaveMap.AuthorEditSaveMap.CreateCredentialAsync C# (CSharp) Метод

CreateCredentialAsync() публичный Метод

public CreateCredentialAsync ( CredentialRequestInfo info ) : Task
info CredentialRequestInfo
Результат Task
        public async Task<Credential> CreateCredentialAsync(CredentialRequestInfo info)
        {
            Credential credential = null;

            try
            {
                // IOAuthAuthorizeHandler will challenge the user for OAuth credentials
                credential = await AuthenticationManager.Current.GenerateCredentialAsync(info.ServiceUri);
            }
            catch (Exception ex)
            {
                // Exception will be reported in calling function
                throw (ex);
            }

            return credential;
        }
    }