This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Searching Unmanaged Object

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 ?

Parents Reply
  • Hi craig, Thank you for your reply.

    Yes i use this approach to take objects from repository, but the problem is that it will take all objects from the repository(the promoted one too).

    I would prefer to take only the unmanageds one if there is a way.

Children