CheckIsValid() public method

Returns true if valid, false otherwise.
public CheckIsValid ( ) : bool
return bool
示例#1
0
        /// <summary>
        /// Returns true if valid, false otherwise.
        /// </summary>
        /// <returns></returns>
        public bool CheckIsValid()
        {
            /// Check that the NodeId is provided.
            if (NodeId == Guid.Empty)
            {
                return(false);
            }

            /// Check the Domain validity.
            if (!Domain.CheckIsValid())
            {
                return(false);
            }

            return(true);
        }