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

CTor - attribute bound to shared property

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

Syntax

C#
public LCategoryAttribute(
	Type Resource,
	string PropertyName,
	string AlternativeValue,
	LCategoryAttribute..::..enmLookUpOrder LookupOrder
)
Visual Basic
Public Sub New ( _
	Resource As Type, _
	PropertyName As String, _
	AlternativeValue As String, _
	LookupOrder As LCategoryAttribute..::..enmLookUpOrder _
)
Visual C++
public:
LCategoryAttribute(
	Type^ Resource, 
	String^ PropertyName, 
	String^ AlternativeValue, 
	LCategoryAttribute..::..enmLookUpOrder LookupOrder
)
F#
new : 
        Resource:Type * 
        PropertyName:string * 
        AlternativeValue:string * 
        LookupOrder:LCategoryAttribute..::..enmLookUpOrder -> LCategoryAttribute
JScript
public function LCategoryAttribute(
	Resource : Type, 
	PropertyName : String, 
	AlternativeValue : String, 
	LookupOrder : LCategoryAttribute..::..enmLookUpOrder
)

Parameters

Resource
Type: System..::..Type
Type of type that contains property with name specified in the PropertyName parameter. Though it is assumed that type is resource, it is not necessary.
PropertyName
Type: System..::..String
Name of Static (Shared in Visual Basic) property of type specified in Resource. It is not necessary for the property to be public. Return type must be String. The property shouldn't return an empty string.
AlternativeValue
Type: System..::..String
Alternative value used when property cannot be invoked. This value is also used when lookup order NETFirst (or ResourceFirst and no resource is found) as value to be localized by the .NET Framework.
LookupOrder
Type: Tools.ComponentModelT..::..LCategoryAttribute..::..enmLookUpOrder
Defines order of sources of localized string

See Also