Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ActiveDirectoryClient.GetSpCredentials C# (CSharp) Méthode

GetSpCredentials() public méthode

public GetSpCredentials ( string spObjectId ) : List
spObjectId string
Résultat List
        public List<PSADCredential> GetSpCredentials(string spObjectId)
        {
            List<PSADCredential> CredentialList = new List<PSADCredential>();

            var keyCredsList = GetSpKeyCredentials(spObjectId);
            CredentialList.AddRange(keyCredsList.Select(kc => kc.ToPSADCredential()));

            var passwordCredsList = GetSpPasswordCredentials(spObjectId);
            CredentialList.AddRange(passwordCredsList.Select(pc => pc.ToPSADCredential()));

            return CredentialList;
        }