AWS SDK Version 4 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.

Exception thrown when a custom profile (i.e. specified via the AWS_PROFILE environment variable and different than default) does not exist.

Inheritance Hierarchy

System.Object
  System.Exception
    Amazon.Runtime.AmazonClientException
      Amazon.Runtime.CredentialManagement.ProfileNotFoundException

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

Syntax

C#
public class ProfileNotFoundException : AmazonClientException
         ISerializable

The ProfileNotFoundException type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property Data System.Collections.IDictionary Inherited from System.Exception.
Public Property HelpLink System.String Inherited from System.Exception.
Public Property HResult System.Int32 Inherited from System.Exception.
Public Property InnerException System.Exception Inherited from System.Exception.
Public Property Message System.String Inherited from System.Exception.
Public Property Source System.String Inherited from System.Exception.
Public Property StackTrace System.String Inherited from System.Exception.
Public Property TargetSite System.Reflection.MethodBase Inherited from System.Exception.

Remarks

This will be surfaced to the user instead of moving on to the next credential provider.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.7.2 and newer