This is what i have
internal static class ItemFields
{
public const uint CUSTOM_FIELD_NAME = 1;
public const uint CUSTOM_FIELD_TIMESTAMP = 2;
public const uint CUSTOM_FIELD_SIZE = 3;
public const uint CUSTOM_FIELD_REMOTEID = 4;
public const uint CUSTOM_FIELD_FILENAME = 5;
public const uint CUSTOM_FIELD_ISFOLDER = 6;
}
Then in the EnumerateItems method, i'm storing the custom metadata as follows
ItemFieldDictionary item = new ItemFieldDictionary();
item.Add(new ItemField(ItemFields.CUSTOM_FIELD_REMOTEID, typeof(string), remote_id));
I have assigned the identityRule to the "path" of the file/folder.
Now...how can query on any of this custom metadata..i.e..given a path "Folder\Filename.txt", how can i get the value for remote_id