Share via


SPDataSourceView.InsertCommand property

Gets or sets a query that the SPDataSourceView object uses to insert data into the underlying list.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property InsertCommand As String
    Get
    Set
'Usage
Dim instance As SPDataSourceView
Dim value As String

value = instance.InsertCommand

instance.InsertCommand = value
public string InsertCommand { get; set; }

Property value

Type: System.String
A System.String object that contains a query expressed as a Collaborative Application Markup Language (CAML) fragment.

Remarks

The query string in the InsertCommand property is used by the ExecuteInsert method to insert data into the list data that the SPDataSourceView object represents.

See also

Reference

SPDataSourceView class

SPDataSourceView members

Microsoft.SharePoint.WebControls namespace

InsertParameters

InsertParametersDictionary

ExecuteInsert(IDictionary)