Op Englesch liesen Editéieren

Deelen iwwer


SecurityException.DenySetInstance Property

Definition

Gets or sets the denied security permission, permission set, or permission set collection that caused a demand to fail.

C#
public object? DenySetInstance { get; set; }
C#
public object DenySetInstance { get; set; }
C#
[System.Runtime.InteropServices.ComVisible(false)]
public object DenySetInstance { get; set; }

Property Value

A permission, permission set, or permission set collection object.

Attributes

Remarks

This property contains the denied permission, permission set, or permission set collection that caused the security check to fail. It is null for exceptions that are not caused by a Deny. The property is of type Object because it can contain a permission, a permission set, or a permission set collection. To test the run-time type of this property, you can use the Object.GetType method or a specific language operator, such as the is operator in C# or the TypeOf operator in Visual Basic.

Applies to

Produkt Versiounen
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1