Share via


IXamlDirect.RemoveFromCollection(Object, Object) Method

Definition

Tries to remove a value from 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:
 bool RemoveFromCollection(Platform::Object ^ xamlDirectObject, Platform::Object ^ value);
bool RemoveFromCollection(IInspectable const& xamlDirectObject, IInspectable const& value);
public bool RemoveFromCollection(object xamlDirectObject, object value);
Public Function RemoveFromCollection (xamlDirectObject As Object, value As Object) As Boolean

Parameters

xamlDirectObject
Object

Platform::Object

IInspectable

Refers to the specific IXamlDirect collection.

value
Object

Platform::Object

IInspectable

Refers to the IXamlDirect value to remove from the collection.

Returns

Boolean

bool

true if value was present. Otherwise, false.

Applies to

See also