C# Класс InTheHand.ApplicationModel.Resources.ResourceLoader

Provides simplified access to app resources such as app UI strings.
PlatformVersion supported Windows UWPWindows 10 Windows StoreWindows 8.1 or later Windows Phone StoreWindows Phone 8.1 or later Windows Phone SilverlightWindows Phone 8.0 or later
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetForCurrentView ( ) : ResourceLoader

Gets a ResourceLoader object for the Resources subtree of the currently running app's main ResourceMap. This ResourceLoader uses a default context associated with the current view.

GetForViewIndependentUse ( ) : ResourceLoader

Gets a ResourceLoader object for the Resources subtree of the currently running app's main ResourceMap. This ResourceLoader uses a default context that's not associated with any view.

GetString ( string resource ) : string

Returns the most appropriate string value of a resource, specified by resource identifier, for the default ResourceContext of the view in which the ResourceLoader was obtained using ResourceLoader.GetForCurrentView.

Приватные методы

Метод Описание
ResourceLoader ( ResourceManager manager ) : System
ResourceLoader ( Windows loader ) : System

Описание методов

GetForCurrentView() публичный статический Метод

Gets a ResourceLoader object for the Resources subtree of the currently running app's main ResourceMap. This ResourceLoader uses a default context associated with the current view.
public static GetForCurrentView ( ) : ResourceLoader
Результат ResourceLoader

GetForViewIndependentUse() публичный статический Метод

Gets a ResourceLoader object for the Resources subtree of the currently running app's main ResourceMap. This ResourceLoader uses a default context that's not associated with any view.
public static GetForViewIndependentUse ( ) : ResourceLoader
Результат ResourceLoader

GetString() публичный Метод

Returns the most appropriate string value of a resource, specified by resource identifier, for the default ResourceContext of the view in which the ResourceLoader was obtained using ResourceLoader.GetForCurrentView.
public GetString ( string resource ) : string
resource string The resource identifier of the resource to be resolved.
Результат string