Export (0) Print
Expand All

ResourcePermissionBase.TagNames Property

Gets or sets an array of strings that identify the resource you are protecting.

Namespace:  System.Security.Permissions
Assembly:  System (in System.dll)

protected string[] TagNames { get; set; }

Property Value

Type: System.String[]
An array of strings that identify the resource you are trying to protect.

ExceptionCondition
ArgumentNullException

The property value is null.

ArgumentException

The length of the array is 0.

Notes to Inheritors

When you inherit from ResourcePermissionBase, you must set this property. For an example of an implementation of this class, see PerformanceCounterPermission. In PerformanceCounterPermission, the TagNames property is set privately to "Machine" and "Category".

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft