XPlat.ApplicationModel
XPlat.Core
XPlat.Device.Display
XPlat.Device.Geolocation
XPlat.Device.Launcher
XPlat.Device.Power
XPlat.Device.Profile
XPlat.Foundation
XPlat.Media.Capture
XPlat.Storage
XPlat.Storage.Pickers
XPlat.UI.Core

AppPermissionInvalidException

Namespace: XPlat.Exceptions

Defines an exception that is thrown when an application permission is not set.

public class AppPermissionInvalidException : Exception

Supported platforms

Platform

Version

.NET Standard

1.4

Xamarin.Android

8.1

Xamarin.iOS

1.0

UWP

10.0

Constructors

AppPermissionInvalidException(string, string)

Parameters

permission (string)

The permission which could not be found.

message (string)

The error message that explains the reason for the exception.

AppPermissionInvalidException(string, string, Exception)

Parameters

permission (string)

The permission which could not be found.

message (string)

The error message that explains the reason for the exception.

innerException (Exception)

The exception that is the cause of the current exception.

Properties

PermissionCode

Gets the permission which could not be found.

public string PermissionCode { get; }