[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 LCategoryAttribute(
	string ResourceName,
	string PropertyName,
	Type TypeFromAssembly,
	string Alternative,
	LCategoryAttribute..::..enmLookUpOrder LookupOrder
)
Visual Basic
Public Sub New ( _
	ResourceName As String, _
	PropertyName As String, _
	TypeFromAssembly As Type, _
	Alternative As String, _
	LookupOrder As LCategoryAttribute..::..enmLookUpOrder _
)
Visual C++
public:
LCategoryAttribute(
	String^ ResourceName, 
	String^ PropertyName, 
	Type^ TypeFromAssembly, 
	String^ Alternative, 
	LCategoryAttribute..::..enmLookUpOrder LookupOrder
)
F#
new : 
        ResourceName:string * 
        PropertyName:string * 
        TypeFromAssembly:Type * 
        Alternative:string * 
        LookupOrder:LCategoryAttribute..::..enmLookUpOrder -> LCategoryAttribute
JScript
public function LCategoryAttribute(
	ResourceName : String, 
	PropertyName : String, 
	TypeFromAssembly : Type, 
	Alternative : String, 
	LookupOrder : LCategoryAttribute..::..enmLookUpOrder
)

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
LookupOrder
Type: Tools.ComponentModelT..::..LCategoryAttribute..::..enmLookUpOrder
Defines order of sources of localized string

Exceptions

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

See Also