[This is preliminary documentation and is subject to change.]

CTor - attribute bound to any resouce

Namespace: Tools.ComponentModelT
Assembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
public LDisplayNameAttribute(
	string ResourceName,
	string PropertyName,
	Type TypeFromAssembly,
	string Alternative
)
Visual Basic
Public Sub New ( _
	ResourceName As String, _
	PropertyName As String, _
	TypeFromAssembly As Type, _
	Alternative As String _
)
Visual C++
public:
LDisplayNameAttribute(
	String^ ResourceName, 
	String^ PropertyName, 
	Type^ TypeFromAssembly, 
	String^ Alternative
)
F#
new : 
        ResourceName:string * 
        PropertyName:string * 
        TypeFromAssembly:Type * 
        Alternative:string -> LDisplayNameAttribute
JScript
public function LDisplayNameAttribute(
	ResourceName : String, 
	PropertyName : String, 
	TypeFromAssembly : Type, 
	Alternative : String
)

Parameters

ResourceName
Type: System..::..String
Base name of resource (used by CTor of ResourceManager)
PropertyName
Type: System..::..String
Name of item in resource ResourceName
TypeFromAssembly
Type: System..::..Type
Any type from assembly where resource named ResourceName is defined. Item can be any object, the ToString()()()() function is used.
Alternative
Type: System..::..String
Alternative value when resource cannot be obtained

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionResourceName, PropertyName or TypeFromAssembly is null

See Also