Amazon.Runtime.Internal.Auth.SharedCredentialsFile.TryGetCredentials C# (CSharp) Method

TryGetCredentials() public method

Return the credentials for the profile if valid credentials can be found.
public TryGetCredentials ( string profileName, ImmutableCredentials &credentials ) : bool
profileName string name of profile to find credentials for
credentials ImmutableCredentials the credentials for the profile
return bool
        public bool TryGetCredentials(string profileName, out ImmutableCredentials credentials)
        {
            credentials = GetCredentials(profileName, false);
            return credentials != null;
        }