AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Probes for and returns the fully qualified name of the shared ini-format credentials file.

Namespace: Amazon.Runtime
Assembly: AWSSDK.Core.dll
Version: 3.x.y.z


public String ResolveSharedCredentialFileLocation(
         String profileLocation
Type: System.String

Contains the file or folder name of the credential file. If not specified, the routine will first check the application configuration file for a setting indicating the file location or filename. If the configuration file does not yield a credential file location then an environment variable is examined. Finally the routine will inspect the fallback default location beneath the user's home folder location.

Return Value
Type: String
The fully qualified name to the credential file that was located, or null if no credential file could be found.

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5