Struct LocalizedResource
Represents access to a localized resource set.
public readonly struct LocalizedResource : IDisposable
- Implements
- Inherited Members
Constructors
LocalizedResource(string, CultureInfo?)
Creates a new instance of the LocalizedResource struct.
public LocalizedResource(string type, CultureInfo? culture)
Parameters
typestring- The name of the localized resource.
cultureCultureInfo- The preferred culture of the resource.
Exceptions
- InvalidOperationException
- The resources have not been initialized yet.
LocalizedResource(string, ref CultureInfo?)
Creates a new instance of the LocalizedResource struct.
public LocalizedResource(string type, ref CultureInfo? culture)
Parameters
typestring- The name of the localized resource.
cultureCultureInfo- The preferred culture of the resource. When the constructor returns, set to the actual culture of the resource.
Exceptions
- InvalidOperationException
- The resources have not been initialized yet.
Properties
RootMessageStringSet
The root message string set of the resource.
public IMessageStringSet RootMessageStringSet { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()