Version

AddCustomParameter Method

Adds a custom parameter to the data bindings.
Syntax
'Declaration
 
Protected Sub AddCustomParameter( _
   ByVal binding As ScheduleDataBinding, _
   ByVal tableName As String, _
   ByVal placeholderName As String, _
   ByVal parameterName As String, _
   ByVal parameterDbType As DbType _
) 
protected void AddCustomParameter( 
   ScheduleDataBinding binding,
   string tableName,
   string placeholderName,
   string parameterName,
   DbType parameterDbType
)

Parameters

binding
A ScheduleDataBinding, usually this will be a subclass of a data binding developers will enhance through inheritance.
tableName
The table name (either "Activity" or "Resource"). The custom parameter will only apply to queries against the specified table.
placeholderName
The name of the placeholder replaced during data binding. This is usually your column's name.
parameterName
The named parameter in the query. If unspecified then the placeholderName is used. The parameter name should not be prefixed with an '@' symbol.
parameterDbType
The database type of parameterName. This must be compatible with the type of the bound property in the WebSchedule object model, as well as with the type declared for the parameter in your data source.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also