This documentation is archived and is not being maintained.

SecurityElement.IsValidAttributeName Method

Determines whether a string is a valid attribute name.

[Visual Basic]
Public Shared Function IsValidAttributeName( _
   ByVal name As String _
) As Boolean
public static bool IsValidAttributeName(
 string name
public: static bool IsValidAttributeName(
 String* name
public static function IsValidAttributeName(
   name : String
) : Boolean;


The attribute name to test for validity.

Return Value

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


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


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

SecurityElement Class | SecurityElement Members | System.Security Namespace