Mediachase FileUploader.NET 1.9 Framework Help

McFile.Copy Method (Stream, String, String, String, SqlParameter[])

Saves the contents of a source stream into MS SQL database.

[Visual Basic]
Overloads Public Shared Sub Copy( _
   ByVal sourceStream As Stream, _
   ByVal ConnectionString As String, _
   ByVal TableName As String, _
   ByVal ColumnName As String, _
   ParamArray PrimaryKeys As SqlParameter() _
)
[C#]
public static void Copy(
   Stream sourceStream,
   string ConnectionString,
   string TableName,
   string ColumnName,
   params SqlParameter[] PrimaryKeys
);

Parameters

sourceStream
A source stream.
ConnectionString
A sql connection string that includes the source database name, and other parameters needed to establish the initial connection. The default value is an empty string.
TableName
A table name for the table that the current file stream will encapsulate.
ColumnName
A column name for the column that the current file stream will encapsulate.
PrimaryKeys
A primary keys collection for the row that the current file stream will encapsulate.

See Also

McFile Class | Mediachase.FileUploader Namespace | McFile.Copy Overload List