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:
property array<String^>^ TagNames {
	array<String^>^ get();
	void set(array<String^>^ value);
}

Property Value

Type: array<System::String^>^

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

Exception Condition
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
Available since 1.1
Return to top
Show: