DeviceInformationCollection.IndexOf(DeviceInformation, UInt32) 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.
Returns the index of the specified DeviceInformation object in the collection.
public:
virtual bool IndexOf(DeviceInformation ^ value, [Out] unsigned int & index) = IVectorView<DeviceInformation ^>::IndexOf;
bool IndexOf(DeviceInformation const& value, [Out] uint32_t & index);
public bool IndexOf(DeviceInformation value, out uint index);
Public Function IndexOf (value As DeviceInformation, ByRef index As UInteger) As Boolean
Parameters
- value
- DeviceInformation
The DeviceInformation object in the collection.
- index
-
UInt32
unsigned int
uint32_t
The index.
Returns
Boolean
bool
true if the method succeeded; otherwise, false.
Implements
M:Windows.Foundation.Collections.IVectorView
1.IndexOf(
0,System.UInt32@)
M:Windows.Foundation.Collections.IVectorView1.IndexOf(
0,unsigned int@)
M:Windows.Foundation.Collections.IVectorView1.IndexOf(
0,uint32_t@)
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for