MarkupAttribute.TryGetProperty(string,string?)

Method in MarkupAttribute

Summary

Gets a string property named name from this attribute, if present.

public readonly bool TryGetProperty(string name, [NotNullWhen(true)] out string? result)

Parameters

NameDescription
string nameThe name of the property.
string resultOn return, the property’s value if found, or null if not.

Returns

true if a property named name was found; false otherwise.