In This Article

SRExtension Class

A markup extension that loads an assembly's string resource.

public class SRExtension : SRExtensionBase<SRName>
Inheritance:
object MarkupExtension SRExtensionBase<SRName> object

Constructors

SRExtension()

Initializes an instance of the class.

public SRExtension()

SRExtension(SRName)

Initializes an instance of the class with a string resource name.

public SRExtension(SRName name)
Parameter Type Description
name SRName

The name of the string resource.

Properties

Name

The name of the string resource.

[ConstructorArgument("name")]
public override SRName Name { get; set; }

Property Value

SRName

Methods

ProvideValue(IServiceProvider?)

When implemented in a derived class, returns an object that is provided as the value of the target property for this markup extension.

public override object? ProvideValue(IServiceProvider? serviceProvider)
Parameter Type Description
serviceProvider IServiceProvider

A service provider helper that can provide services for the markup extension.

Returns

object:

The object value to set on the property where the extension is applied.

Inherited Members

Extension Methods