C# Class System.ComponentModel.ComponentResourceManager

The ComponentResourceManager is a resource manager object that provides simple functionality for enumerating resources for a component or object.
Inheritance: System.Resources.ResourceManager
Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Private Properties

Свойство Type Description
FillResources object>.SortedList

Méthodes publiques

Méthode Description
ApplyResources ( object value, string objectName ) : void

This method examines all the resources for the current culture. When it finds a resource with a key in the format of "[objectName].[property name]" it will apply that resource's value to the corresponding property on the object. If there is no matching property the resource will be ignored.

ApplyResources ( object value, string objectName, CultureInfo culture ) : void

This method examines all the resources for the provided culture. When it finds a resource with a key in the format of "[objectName].[property name]" it will apply that resource's value to the corresponding property on the object. If there is no matching property the resource will be ignored.

ComponentResourceManager ( ) : System
ComponentResourceManager ( Type t ) : System

Private Methods

Méthode Description
FillResources ( CultureInfo culture, ResourceSet &resourceSet ) : object>.SortedList

Recursive routine that creates a resource hashtable populated with resources for culture and all parent cultures.

Method Details

ApplyResources() public méthode

This method examines all the resources for the current culture. When it finds a resource with a key in the format of "[objectName].[property name]" it will apply that resource's value to the corresponding property on the object. If there is no matching property the resource will be ignored.
public ApplyResources ( object value, string objectName ) : void
value object
objectName string
Résultat void

ApplyResources() public méthode

This method examines all the resources for the provided culture. When it finds a resource with a key in the format of "[objectName].[property name]" it will apply that resource's value to the corresponding property on the object. If there is no matching property the resource will be ignored.
public ApplyResources ( object value, string objectName, CultureInfo culture ) : void
value object
objectName string
culture System.Globalization.CultureInfo
Résultat void

ComponentResourceManager() public méthode

public ComponentResourceManager ( ) : System
Résultat System

ComponentResourceManager() public méthode

public ComponentResourceManager ( Type t ) : System
t System.Type
Résultat System