Click or drag to resize

TpsResourceManager Class

This class allows the user to load resources.
Inheritance Hierarchy
SystemObject
  System.ResourcesResourceManager
    ABB.Robotics.Tps.ResourcesTpsResourceManager

Namespace:  ABB.Robotics.Tps.Resources
Assembly:  ABB.Robotics.Tps.Resources (in ABB.Robotics.Tps.Resources.dll) Version: 6.5.129.0
Syntax
C#
public class TpsResourceManager : ResourceManager, 
	ITpsResourceManager

The TpsResourceManager type exposes the following members.

Constructors
  NameDescription
Public methodTpsResourceManager
Initializes a new instance of the TpsResourceManager class.
Public methodTpsResourceManager(String)
Initializes a new instance of the TpsResourceManager class that looks up resources contained in files derived from the specified root name using the calling Assembly.
Public methodTpsResourceManager(String, Assembly)
Initializes a new instance of the TpsResourceManager class that looks up resources contained in files derived from the specified root name using the given Assembly.
Top
Properties
  NameDescription
Public propertyBaseName
Gets the root name of the resource files that the ResourceManager searches for resources.
(Inherited from ResourceManager.)
Protected propertyFallbackLocation
Gets or sets the location from which to retrieve neutral fallback resources.
(Inherited from ResourceManager.)
Public propertyIgnoreCase
Gets or sets a Boolean value indicating whether the current instance of ResourceManager allows case-insensitive resource lookups in the GetString(String) and GetObject(String) methods.
(Inherited from ResourceManager.)
Public propertyResourceSetType
Gets the Type of the ResourceSet the ResourceManager uses to construct a ResourceSet object.
(Inherited from ResourceManager.)
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetImage
Returns an image associated with a fileName.
Public methodGetObject(String)
Overridden. Gets the value of the specified Object resource for the current culture.
(Overrides ResourceManagerGetObject(String).)
Public methodGetObject(String, CultureInfo)
Gets the value of the Object resource localized for the specified culture.
(Inherited from ResourceManager.)
Protected methodGetResourceFileName
Generates the name for the resource file for the given CultureInfo.
(Inherited from ResourceManager.)
Public methodGetResourceSet
Gets the ResourceSet for a particular culture.
(Inherited from ResourceManager.)
Public methodGetStream(String)
Returns an UnmanagedMemoryStream object from the specified resource.
(Inherited from ResourceManager.)
Public methodGetStream(String, CultureInfo)
Returns an UnmanagedMemoryStream object from the specified resource, using the specified culture.
(Inherited from ResourceManager.)
Public methodGetString(String)
Returns an string associated with an id. First it looks for in the user assembly and then it looks in the global resource assembly.
(Overrides ResourceManagerGetString(String).)
Public methodGetString(String, CultureInfo)
Gets the value of the String resource localized for the specified culture.
(Inherited from ResourceManager.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodInternalGetResourceSet
Overridden. Provides the implementation for finding a ResourceSet of a specific user-assembly and language.
(Overrides ResourceManagerInternalGetResourceSet(CultureInfo, Boolean, Boolean).)
Public methodStatic memberLoadGlobalResourcesFiles
Loads the resources for an specific language.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReleaseAllResources
Tells the TpsResourceManager to call Close on all ResourceSet objects and release all resources.
(Overrides ResourceManagerReleaseAllResources.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Protected fieldBaseNameField
Indicates the root name of the resource files that the ResourceManager searches for resources.
(Inherited from ResourceManager.)
Protected fieldMainAssembly
Indicates the main Assembly that contains the resources.
(Inherited from ResourceManager.)
Protected fieldResourceSets
Contains a Hashtable that returns a mapping from cultures to ResourceSet objects.
(Inherited from ResourceManager.)
Top
Remarks
This type is not guaranteed to be thread safe.

FlexPendant resource files follow same rules as Resource files in .NET Applications.

In order to build an application with localized texts, developers must create a resource file (resx), which contains the table of strings. Then a common language runtime binary .resources file must be created using the Visual Studio 2005 tool ResGen.exe.

Finally a satellite assembly must be built using the Assembly Linker.

al /t:lib /embed:TestClientNamespace.strings.culture.resources /culture:en /out:AssemblyName.resources.dll

NOTE: Find out more about localization in the User's Guide.
See Also