IXamlDirect.RemoveFromCollection(Object, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
bool
true if value was present. Otherwise, false.