NUnitAsp

HtmlTagTester.OptionalAttribute Method 

Returns the value of an attribute on this tag or null if the attribute isn't present.

public string OptionalAttribute(
   string name
);

Parameters

name
The name of the attribute.

Return Value

The value of the attribute or null if not present.

See Also

HtmlTagTester Class | NUnit.Extensions.Asp Namespace