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

Parameters

value
The attribute value to test for validity.

Return Value

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