IsValidAttributeValue Method

SecurityElement.IsValidAttributeValue Method

Determines whether a string is a valid attribute value.

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


The attribute value to test for validity.

Return Value

true if the value parameter is a valid XML attribute value; 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

© 2016 Microsoft