System.Security.SecurityElement.IsValidTag Method

Determines whether a string is a valid tag.

Syntax

public static bool IsValidTag (string tag)

Parameters

tag
The tag to test for validity.

Returns

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

Remarks

This can be used to test a SecurityElement.Tag before setting it.

Requirements

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