Hello how to check in Umbraco that node that i get by Id is still exist
var node = new Node(id);
return object in anyway, but if I try read some properties I got exception.
Does anyone know Umbraco API function for check it ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I usually just check:
string.IsNullOrEmpty(node.Name)A node should never have an empty name, so that way you know it’s either unpublished or has been deleted.
It is a workaround for the fact that the API has no other way of checking this.