Skip to content

net472_PropertyGridHelpers.Attributes_DynamicPathSourceAttribute_Get

dparvin edited this page Jan 11, 2026 · 2 revisions

DynamicPathSourceAttribute.Get method

Resolves the most appropriate DynamicPathSourceAttribute for the given context and usage.

public static DynamicPathSourceAttribute Get(ITypeDescriptorContext context, 
    ResourceUsage resourceUsage = ResourceUsage.All)
parameter description
context The context containing property and instance metadata.
resourceUsage The intended type of resource (e.g., strings, images) to retrieve the matching attribute.

Return Value

The best-matching DynamicPathSourceAttribute, or null if none found.

Exceptions

exception condition
ArgumentException Thrown if resourceUsage is None.

See Also

Clone this wiki locally