IXamlDirect.AddToCollection(Object, Object) Method

Definition

Adds a value to the specified IXamlDirect collection.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

public:
 void AddToCollection(Platform::Object ^ xamlDirectObject, Platform::Object ^ value);
void AddToCollection(IInspectable const& xamlDirectObject, IInspectable const& value);
public void AddToCollection(object xamlDirectObject, object value);
Public Sub AddToCollection (xamlDirectObject As Object, value As Object)

Parameters

xamlDirectObject
Object

Platform::Object

IInspectable

Refers to the specific IXamlDirect collection.

value
Object

Platform::Object

IInspectable

Refers to the IXamlDirect value to add to the collection.

Remarks

IXamlDirect is the minimal handle to Xaml's internal object instances. Hence the collection and the value to add to the collection are both of type IXamlDirect.

Applies to

See also