Share via


DomainDataSourceView.Add Method

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Adds the specified item to the collection.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls.DomainServices (in System.Windows.Controls.DomainServices.dll)

Syntax

'Declaration
Public Sub Add ( _
    item As Object _
)
'Usage
Dim instance As DomainDataSourceView
Dim item As Object

instance.Add(item)
public void Add(
    Object item
)
public:
void Add(
    Object^ item
)
member Add : 
        item:Object -> unit 
public function Add(
    item : Object
)

Parameters

Exceptions

Exception Condition
InvalidOperationException

CanAdd is false.

See Also

Reference

DomainDataSourceView Class

System.Windows.Controls Namespace