This string typed function defines the value formetter function name. This function must be declared as a shared/static function on the type ValueFormatterType.

Public Class Contact
    <ExportMember(Order:=0, ValueFormatterFuncName:="DateFormatter", ValueFormatterType:=GetType(Contact))>
    Public Property ModifiedDate As Date

    Public Shared Function DateFormatter(inp As Date) As String
        Return inp.ToString("yyyy-MM-dd")
    End Function
End Class

Last edited Apr 19, 2012 at 11:06 PM by cannonball, version 2


No comments yet.