narmi2
asked on
How do use this class - Part 3
Dear Experts,
Continuing on from here:
https://www.experts-exchange.com/questions/24789315/How-to-use-this-class-Part-2.html?anchorAnswerId=25506501#a25506501
How do I use the following part?
public ProfileSearchParameter[] ProfileSearchParameters;
from the class:
public class SearchDocumentsInput
{
public string[] Databases;
public imProfileAttributeID[] OutputProfile;
public ProfileSearchParameter[] ProfileSearchParameters;
public imSearchEmail SearchEmail;
public FullTextSearch FullTextSearch;
public OutputMask OutputMask;
}
Continuing on from here:
https://www.experts-exchange.com/questions/24789315/How-to-use-this-class-Part-2.html?anchorAnswerId=25506501#a25506501
How do I use the following part?
public ProfileSearchParameter[] ProfileSearchParameters;
from the class:
public class SearchDocumentsInput
{
public string[] Databases;
public imProfileAttributeID[] OutputProfile;
public ProfileSearchParameter[] ProfileSearchParameters;
public imSearchEmail SearchEmail;
public FullTextSearch FullTextSearch;
public OutputMask OutputMask;
}
ASKER
This one seems to be a little different. In the documentation it says:
public class ProfileSearchParameter
{
public imProfileAttributeID AttributeID;
public string SearchValue;
}
where
AttributeID = the attribute ID of a property used as a search parameter (see
imProfileAttributeID on page 67
SearchValue = the value of the property to be matched during the search
and on page 67 it says:
public enum imProfileAttributeID
{
imProfileDatabase = 0,
imProfileDocNum = 1,
imProfileVersion = 2,
imProfileDescription = 3,
imProfileName = 4,
imProfileAuthor = 5,
imProfileOperator = 6,
imProfileType = 7,
imProfileClass = 8,
imProfileSubClass = 9,
imProfileEditDate = 10,
imProfileCreateDate = 11,
imProfileRetainDays = 12,
imProfileSize = 13,
imProfileIndexable = 14,
imProfileIsRelated = 15,
imProfileLocation = 16,
imProfileDefaultSecurity = 17,
imProfileLastUser = 18,
imProfileInUseBy = 19,
imProfileNetNode = 20,
imProfileInUse = 21,
imProfileCheckedOut = 22,
imProfileArchived = 23,
imProfileComment = 24,
imProfileCustom1 = 25,
imProfileCustom2 = 26,
imProfileCustom3 = 27,
imProfileCustom4 = 28,
imProfileCustom5 = 29,
imProfileCustom6 = 30,
imProfileCustom7 = 31,
imProfileCustom8 = 32,
imProfileCustom9 = 33,
imProfileCustom10 = 34,
imProfileCustom11 = 35,
imProfileCustom12 = 36,
imProfileCustom13 = 37,
imProfileCustom14 = 38,
imProfileCustom15 = 39,
imProfileCustom16 = 40,
imProfileCustom17 = 41,
imProfileCustom18 = 42,
imProfileCustom19 = 43,
imProfileCustom20 = 44,
imProfileCustom21 = 45,
imProfileCustom22 = 46,
imProfileCustom23 = 47,
imProfileCustom24 = 48,
imProfileCustom25 = 49,
imProfileCustom26 = 50,
imProfileCustom27 = 51,
imProfileCustom28 = 52,
imProfileCustom29 = 53,
imProfileCustom30 = 54,
imProfileCustom1Descriptio n = 60,
imProfileCustom2Descriptio n = 61,
imProfileCustom3Descriptio n = 62,
imProfileCustom4Descriptio n = 63,
imProfileCustom5Descriptio n = 64,
imProfileCustom6Descriptio n = 65,
imProfileCustom7Descriptio n = 66,
imProfileCustom8Descriptio n = 67,
imProfileCustom9Descriptio n = 68,
imProfileCustom10Descripti on = 69,
imProfileCustom11Descripti on = 70,
imProfileCustom12Descripti on = 71,
imProfileCustom29Descripti on = 72,
imProfileCustom30Descripti on = 73,
imProfileAuthorDescription = 74,
imProfileOperatorDescripti on = 75,
imProfileTypeDescription = 76,
imProfileClassDescription = 77,
imProfileSubClassDescripti on = 78,
imProfileLastUserDescripti on = 79,
imProfileInUseByDescriptio n = 80,
imProfileEditTime = 81,
imProfileExtension = 82,
imProfileFullText = 83,
imProfileSubType = 84,
imProfileEditProfileTime = 85,
imProfileContainerID = 89,
imProfileCustom31 = 96,
imProfileMarkedForArchive = 97,
imProfileEchoEnabled = 98,
imProfileAccessTime = 99,
imProfileMessageUniqueID = 100,
imProfileIsExternal = 101,
imProfileHasAttachment = 102,
imProfileExternalAsNormal = 103,
imProfileProjectItemSID = 104,
imProfileProjectItemParent SID = 105,
imProfileCheckoutPath = 106,
imProfileCheckoutDueDate = 107,
imProfileCheckoutComments = 108,
imProfileCheckoutWhen = 109,
imProfileQuickRetrieve = 110,
imProfileFrozen = 111,
}
public class ProfileSearchParameter
{
public imProfileAttributeID AttributeID;
public string SearchValue;
}
where
AttributeID = the attribute ID of a property used as a search parameter (see
imProfileAttributeID on page 67
SearchValue = the value of the property to be matched during the search
and on page 67 it says:
public enum imProfileAttributeID
{
imProfileDatabase = 0,
imProfileDocNum = 1,
imProfileVersion = 2,
imProfileDescription = 3,
imProfileName = 4,
imProfileAuthor = 5,
imProfileOperator = 6,
imProfileType = 7,
imProfileClass = 8,
imProfileSubClass = 9,
imProfileEditDate = 10,
imProfileCreateDate = 11,
imProfileRetainDays = 12,
imProfileSize = 13,
imProfileIndexable = 14,
imProfileIsRelated = 15,
imProfileLocation = 16,
imProfileDefaultSecurity = 17,
imProfileLastUser = 18,
imProfileInUseBy = 19,
imProfileNetNode = 20,
imProfileInUse = 21,
imProfileCheckedOut = 22,
imProfileArchived = 23,
imProfileComment = 24,
imProfileCustom1 = 25,
imProfileCustom2 = 26,
imProfileCustom3 = 27,
imProfileCustom4 = 28,
imProfileCustom5 = 29,
imProfileCustom6 = 30,
imProfileCustom7 = 31,
imProfileCustom8 = 32,
imProfileCustom9 = 33,
imProfileCustom10 = 34,
imProfileCustom11 = 35,
imProfileCustom12 = 36,
imProfileCustom13 = 37,
imProfileCustom14 = 38,
imProfileCustom15 = 39,
imProfileCustom16 = 40,
imProfileCustom17 = 41,
imProfileCustom18 = 42,
imProfileCustom19 = 43,
imProfileCustom20 = 44,
imProfileCustom21 = 45,
imProfileCustom22 = 46,
imProfileCustom23 = 47,
imProfileCustom24 = 48,
imProfileCustom25 = 49,
imProfileCustom26 = 50,
imProfileCustom27 = 51,
imProfileCustom28 = 52,
imProfileCustom29 = 53,
imProfileCustom30 = 54,
imProfileCustom1Descriptio
imProfileCustom2Descriptio
imProfileCustom3Descriptio
imProfileCustom4Descriptio
imProfileCustom5Descriptio
imProfileCustom6Descriptio
imProfileCustom7Descriptio
imProfileCustom8Descriptio
imProfileCustom9Descriptio
imProfileCustom10Descripti
imProfileCustom11Descripti
imProfileCustom12Descripti
imProfileCustom29Descripti
imProfileCustom30Descripti
imProfileAuthorDescription
imProfileOperatorDescripti
imProfileTypeDescription = 76,
imProfileClassDescription = 77,
imProfileSubClassDescripti
imProfileLastUserDescripti
imProfileInUseByDescriptio
imProfileEditTime = 81,
imProfileExtension = 82,
imProfileFullText = 83,
imProfileSubType = 84,
imProfileEditProfileTime = 85,
imProfileContainerID = 89,
imProfileCustom31 = 96,
imProfileMarkedForArchive = 97,
imProfileEchoEnabled = 98,
imProfileAccessTime = 99,
imProfileMessageUniqueID = 100,
imProfileIsExternal = 101,
imProfileHasAttachment = 102,
imProfileExternalAsNormal = 103,
imProfileProjectItemSID = 104,
imProfileProjectItemParent
imProfileCheckoutPath = 106,
imProfileCheckoutDueDate = 107,
imProfileCheckoutComments = 108,
imProfileCheckoutWhen = 109,
imProfileQuickRetrieve = 110,
imProfileFrozen = 111,
}
ASKER
This question will probably end up having 6 parts, so lots of points to give.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ASKER
ASKER
ASKER
ASKER
Dim param(2) as ProfileSearchParameters
param(0) = ...
param(1) = ...
param(2) = ...
SDI.ProfileSearchParameter
I used ... because i dont know what ProfileSearchParameters is. If its another enum then use it that way.