Timeline for SPFolderCollection valid index arguments
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 9, 2013 at 14:33 | comment | added | thanby | It turns out that the problem is with the SPFolderCollection, not the indexing argument. I'll also give your suggestion a shot to see if it helps. | |
Jul 9, 2013 at 13:43 | comment | added | RJ Cuthbertson | What are you trying to construct here? You aren't trying to construct an object... you could try using this: msdn.microsoft.com/en-us/library/ms461547.aspx but your original question was how to use the folder name as a string variable for your indexer, which should work without a hitch. If you're running into an additional problem, you should post a new question. | |
Jul 9, 2013 at 13:36 | comment | added | thanby |
Good catch, unfortunately that was my mistake in writing the example. I was actually trying to pass the newFolderName which is a string that was used to name the folder when it was created earlier. The results are unchanged. Just to experiment, I tried passing the .Title and .Name properties of the SPListItem but it is throwing an error saying "no constructors defined". I even tried them both .ToString() for good measure, no love.
|
|
Jul 3, 2013 at 17:32 | history | answered | RJ Cuthbertson | CC BY-SA 3.0 |