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 */
protected String[] get_TagNames ()

/** @property */
protected void set_TagNames (String[] value)

protected function get TagNames () : String[]

protected function set TagNames (value : String[])

Property Value

An array of strings that identify the resource you are trying to protect.

Exception typeCondition

ArgumentNullException

The property value is a null reference (Nothing in Visual Basic).

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".

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0
Show: