Hello,
I am trying to get all the unmanaged object from an external repository.
I can search for a specific repository but I am not able to get only unmanaged object, (I don`t want managed object)
I know that when I do the search I need to use the flag `MFSearchFlags.MFSearchFlagIncludeUnmanagedObjects`, to include unmanaged object
With some research, I have found the flags ` MFSpecialObjectFlag.MFSpecialObjectFlagUnmanagedReference`
I concluded that this is a way to get the unmanaged objects and not the managed one.
Example :
SearchCondition searchCondition = new SearchCondition(); searchCondition.ConditionType = MFConditionType.MFConditionTypeContainsAnyBitwise; searchCondition.Expression.DataStatusValueType = MFStatusType.MFStatusTypeObjectFlags; searchCondition.TypedValue.SetValue(MFDataType.MFDatatypeInteger, MFSpecialObjectFlag.MFSpecialObjectFlagUnmanagedReference);
Is this the correct way to use this flag ?
Is there an other way to get exclusively unmanaged object ?