TryGetAttributeWithName(string,MarkupAttribute)

Method in MarkupParseResult

Summary

Gets the first attribute with the specified name, if present.

public bool TryGetAttributeWithName(string name, out MarkupAttribute attribute)

Parameters

NameDescription

string name

The name of the attribute to get.

When this method returns, contains the attribute with the specified name, if the attribute is found; otherwise, the default MarkupAttribute . This parameter is passed uninitialized.

Returns

true if the MarkupParseResult contains an attribute with the specified name; otherwise, false .

Last updated

Yarn Spinner® and Secret Lab® are trade marks of Secret Lab Pty. Ltd., and are used by Yarn Spinner Pty. Ltd. under license.