Returns the localized property of any object as string using reflection

Namespace: DotNetNuke.Services.Tokens
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public static string GetObjectProperty(
	Object objObject,
	string strPropertyName,
	string strFormat,
	CultureInfo formatProvider,
	ref bool PropertyNotFound
)
Visual Basic
Public Shared Function GetObjectProperty ( 
	objObject As Object,
	strPropertyName As String,
	strFormat As String,
	formatProvider As CultureInfo,
	ByRef PropertyNotFound As Boolean
) As String

Parameters

objObject
Type: System..::..Object
Object to access
strPropertyName
Type: System..::..String
Name of property
strFormat
Type: System..::..String
Format String
formatProvider
Type: System.Globalization..::..CultureInfo
specify formatting
PropertyNotFound
Type: System..::..Boolean%
out: specifies, whether property was found

Return Value

Localized Property

Remarks