Table of Contents

Class IntuneAppProtectionPolicyRequiredException

Namespace
Microsoft.Identity.Client
Assembly
Microsoft.Identity.Client.dll

This exception is thrown when Intune requires app protection policy. The information in this exception can be used by app to obtain the required enrollment ID from Mobile App Management (MAM) SDK. See https://aka.ms/msal-net-trueMAM

public class IntuneAppProtectionPolicyRequiredException : MsalServiceException, ISerializable
Inheritance
IntuneAppProtectionPolicyRequiredException
Implements
Inherited Members

Constructors

IntuneAppProtectionPolicyRequiredException(string, string)

Initializes a new instance of the exception class with a specified error code and error message.

public IntuneAppProtectionPolicyRequiredException(string errorCode, string errorMessage)

Parameters

errorCode string

The error code returned by the service or generated by the client. This is the code you can rely on for exception handling.

errorMessage string

The error message that explains the reason for the exception.

Properties

AccountUserId

Local account id

public string AccountUserId { get; set; }

Property Value

string

AuthorityUrl

Authority URL

public string AuthorityUrl { get; set; }

Property Value

string

TenantId

Tenant ID of the App

public string TenantId { get; set; }

Property Value

string

Upn

UPN of the user

public string Upn { get; set; }

Property Value

string