Jiveabillion
-
8/24/2012 12:44:13 PM
RE:Why is the TreeNode.NodeAliasPath Property Read Only?
You should use tn.NodeAlias = newAlias instead. It's much safer because it just changes the last part of the path.
Imagine if you somehow changed the NodeAliasPath to something that didn't match the paths of the documents parents? That would be a problem. The NodeAliasPath is "calculated" based upon the concatenation of all of the document's ancestors' NodeAliases, which is, I believe, the real reason they made it readonly.
If you do, however, want to change the path to the document to be something that is different than it's logical path from it's ancestors, you can set the DocumentUrlPath property or add a DocumentAlias to your document.
|