Table of Contents

Class ResourceAttribute

Namespace
Cuemon.Globalization
Assembly
Cuemon.Core.dll

Provides a generic way to support localization on attribute decorated methods.

public abstract class ResourceAttribute : Attribute
Inheritance
Object
Attribute
ResourceAttribute
Derived
Inherited Members
Attribute.Equals(Object)
Attribute.GetCustomAttribute(Assembly, Type)
Attribute.GetCustomAttribute(Assembly, Type, Boolean)
Attribute.GetCustomAttribute(MemberInfo, Type)
Attribute.GetCustomAttribute(MemberInfo, Type, Boolean)
Attribute.GetCustomAttribute(Module, Type)
Attribute.GetCustomAttribute(Module, Type, Boolean)
Attribute.GetCustomAttribute(ParameterInfo, Type)
Attribute.GetCustomAttribute(ParameterInfo, Type, Boolean)
Attribute.GetCustomAttributes(Assembly)
Attribute.GetCustomAttributes(Assembly, Boolean)
Attribute.GetCustomAttributes(Assembly, Type)
Attribute.GetCustomAttributes(Assembly, Type, Boolean)
Attribute.GetCustomAttributes(MemberInfo)
Attribute.GetCustomAttributes(MemberInfo, Boolean)
Attribute.GetCustomAttributes(MemberInfo, Type)
Attribute.GetCustomAttributes(MemberInfo, Type, Boolean)
Attribute.GetCustomAttributes(Module)
Attribute.GetCustomAttributes(Module, Boolean)
Attribute.GetCustomAttributes(Module, Type)
Attribute.GetCustomAttributes(Module, Type, Boolean)
Attribute.GetCustomAttributes(ParameterInfo)
Attribute.GetCustomAttributes(ParameterInfo, Boolean)
Attribute.GetCustomAttributes(ParameterInfo, Type)
Attribute.GetCustomAttributes(ParameterInfo, Type, Boolean)
Attribute.GetHashCode()
Attribute.IsDefaultAttribute()
Attribute.IsDefined(Assembly, Type)
Attribute.IsDefined(Assembly, Type, Boolean)
Attribute.IsDefined(MemberInfo, Type)
Attribute.IsDefined(MemberInfo, Type, Boolean)
Attribute.IsDefined(Module, Type)
Attribute.IsDefined(Module, Type, Boolean)
Attribute.IsDefined(ParameterInfo, Type)
Attribute.IsDefined(ParameterInfo, Type, Boolean)
Attribute.Match(Object)
Attribute.TypeId

Constructors

ResourceAttribute()

Initializes a new instance of the ResourceAttribute class.

protected ResourceAttribute()

Properties

ResourceType

Gets or sets the type that contains the resources for looking up localized strings.

public Type ResourceType { get; set; }

Property Value

Type

The type that contains the resources for looking up localized strings.

Methods

GetString(String)

Returns the value of the specified string resource.

protected string GetString(string name)

Parameters

name String

The name of the resource to retrieve.

Returns

String

The value of the resource localized for the callers current UI culture, or null if name cannot be found on the ResourceType.

Exceptions

System.InvalidOperationException

You must specify a ResourceType to perform the actual lookup of localized strings.

ArgumentException

The specified ResourceType does not contain a resource with the specified name.

See Also

Attribute