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
[C#]
public static bool IsValidAttributeName(
 string name
);
[C++]
public: static bool IsValidAttributeName(
 String* name
);
[JScript]
public static function IsValidAttributeName(
   name : String
) : Boolean;

Parameters

name
The attribute name to test for validity.

Return Value

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

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

Show: