System.Security.SecurityElement.IsValidAttributeName Method

Determines whether a string is a valid attribute name.

Syntax

public static bool IsValidAttributeName (string name)

Parameters

name
The attribute name to test for validity.

Returns

true if the name parameter is a valid XML attribute name; otherwise, false.

Remarks

This method can be used to test an attribute before adding it to a security element.

Requirements

Namespace: System.Security
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0