if (node.Attributes != null) //checking for attributes of a xml file node.
Я предполагаю, что вы ищете эквивелант в VB.NET:
If node.Attributes Is Not Nothing Then
if (node.Attributes != null)
Edit:
Вы должны отредактировать свой вопрос VB.Net Эквивалентный код ..
If node.Attributes IsNot Nothing Then
Я считаю charp-to-vb отличным сайтом для конвертации между c # и vb.net
В этом случае
If node.Attributes IsNot Nothing Then End If
Если нет (узел. Атрибуты - ничто), то