ShpToSql.SqlConnectionControl.SqlConnectionString.IsValid C# (CSharp) Method

IsValid() public method

public IsValid ( ) : bool
return bool
        public bool IsValid()
        {
            return
                (!string.IsNullOrEmpty(Server) && Server.EndsWith(".sdf")) ||
                (!string.IsNullOrEmpty(Server) &&
                 !string.IsNullOrEmpty(Database) &&
                 (IntegratedSecurity || (!string.IsNullOrEmpty(UserName) && !string.IsNullOrEmpty(Password))));
        }