/// <summary> /// Determines whether this instance is valid. /// </summary> /// <returns> /// <c>true</c> if this instance is valid; otherwise, <c>false</c>. /// </returns> public Boolean IsValid() { var retVal = false; if (ModuleId.HasValue && ItemId.HasValue && VersionId.HasValue) { if (!ModuleName.IsNullOrEmpty() && !ModuleWindow.IsNullOrEmpty() && !ItemName.IsNullOrEmpty()) //Currently VersionName is not supported. { retVal = true; } } return(retVal); }