Questions about a method in GetOperations class
Posted: Mon May 19, 2008 3:10 am
Hi,
Just want to see whether someone can help me, as I am trying to find out the significance of each parameters for this method:
ProcessCommandGetLabelToLocationOutsideWorkingFolder(string objectPath, string label, string labelSubItem, GetOptions getOptions, string destPath)
Especially the significance of the third parameter (string labelSubItem). Diving into the metadata of the GetOperations class in VS, I see that this third parameter is recommended to be set to "null".
- Why does it need to be "null"?
- If the third parameter is NOT "null", will this method still behave exactly the same as if the parameter is "null"?
The reason is because in the past we have been using this method in one of our applications at work by passing a third parameter that could be "null" or NOT "null". However, recently this application has stopped working and spitting out an exception. We tracked it down to this method. If I change the third parameter to "null" now, I can fix the issue and the application will return to normal. However, we feel intrigued why this method suddenly stopped working with our original parameter.
Just want to see whether someone can help me, as I am trying to find out the significance of each parameters for this method:
ProcessCommandGetLabelToLocationOutsideWorkingFolder(string objectPath, string label, string labelSubItem, GetOptions getOptions, string destPath)
Especially the significance of the third parameter (string labelSubItem). Diving into the metadata of the GetOperations class in VS, I see that this third parameter is recommended to be set to "null".
- Why does it need to be "null"?
- If the third parameter is NOT "null", will this method still behave exactly the same as if the parameter is "null"?
The reason is because in the past we have been using this method in one of our applications at work by passing a third parameter that could be "null" or NOT "null". However, recently this application has stopped working and spitting out an exception. We tracked it down to this method. If I change the third parameter to "null" now, I can fix the issue and the application will return to normal. However, we feel intrigued why this method suddenly stopped working with our original parameter.