'Declaration Public Shared Function GetCustomPropertyAsEnum(Of T)( _ ByVal reportItem As CustomReportItem, _ ByVal propertyName As String, _ ByVal defaultValue As T _ ) As T
public static T GetCustomPropertyAsEnum<T>( CustomReportItem reportItem, string propertyName, T defaultValue )
Parameters
- reportItem
- The custom report item.
- propertyName
- The name of the custom property.
- defaultValue
- The default value to return if the property does not exist or cannot be converted.
Type Parameters
- T
- The enum type.
Return Value
The custom property value as an enum, or the default value if the property does not exist or cannot be converted.