System.Security.SecurityElement.IsValidAttributeValue Method

Determines whether a string is a valid attribute value.

Syntax

public static bool IsValidAttributeValue (string value)

Parameters

value
The attribute value to test for validity.

Returns

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

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